box: move all box.ctl triggers except for on_shutdown
The patch moves all triggers from box.ctl to module trigger instead of on_shutdown trigger - they are run in separate fibers, which makes it more difficult to move it to the event subsystem, so it will be moved there in a separate commit. Also, box_raft_on_broadcast triggers are renamed to box_raft_on_election. Despite they are fired on broadcast, the only place they are installed along the whole tarantool organization is box.ctl.on_election. NO_DOC=later NO_CHANGELOG=later Part of #8657
Showing
- src/box/box.cc 24 additions, 4 deletionssrc/box/box.cc
- src/box/box.h 1 addition, 1 deletionsrc/box/box.h
- src/box/lua/ctl.c 7 additions, 11 deletionssrc/box/lua/ctl.c
- src/box/raft.c 26 additions, 3 deletionssrc/box/raft.c
- src/box/raft.h 1 addition, 1 deletionsrc/box/raft.h
- src/box/schema.cc 26 additions, 2 deletionssrc/box/schema.cc
- test/box-luatest/triggers_old_api_test.lua 3 additions, 0 deletionstest/box-luatest/triggers_old_api_test.lua
Loading
Please register or sign in to comment