box: fix 'log.cfg' update on 'box.cfg' error
If 'box.cfg' fails with error, 'log.cfg' still gets updated: instead, update 'log.cfg' after verifying 'box.cfg', and rollback if update of 'log.cfg' fails. Closes #6086
Showing
- changelogs/unreleased/gh-6086-log-cfg-must-not-be-updated-on-box-cfg-error.md 3 additions, 0 deletions...d/gh-6086-log-cfg-must-not-be-updated-on-box-cfg-error.md
- src/box/lua/load_cfg.lua 25 additions, 17 deletionssrc/box/lua/load_cfg.lua
- test/app-tap/logger.test.lua 2 additions, 1 deletiontest/app-tap/logger.test.lua
- test/box-tap/gh-6086-log-cfg-must-not-be-updated-on-box-cfg-error.test.lua 15 additions, 0 deletions...086-log-cfg-must-not-be-updated-on-box-cfg-error.test.lua
- test/box/reconfigure.result 1 addition, 1 deletiontest/box/reconfigure.result
Loading
Please register or sign in to comment