config: move role start and stop to _post_apply()
Roles are now started and stopped at the "post_apply" stage rather than at the "apply" stage. This allows require('config'):get() to correctly return the configuration that is being applied. Closes #9649 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-9649-config-get-in-roles.md 4 additions, 0 deletionschangelogs/unreleased/gh-9649-config-get-in-roles.md
- src/box/lua/config/applier/roles.lua 9 additions, 4 deletionssrc/box/lua/config/applier/roles.lua
- test/config-luatest/roles_test.lua 44 additions, 0 deletionstest/config-luatest/roles_test.lua
Please register or sign in to comment