box: add compat option for replication_sync_timeout default value
Instead of setting the `replication_sync_timeout` default to new value (0) unconditionally, add a compat option which will control the default value. The compat option is named "box_cfg_replication_sync_timeout" and is "old" by default, meaning default `replication_sync_timeout` is 300. The user has to set it to "new" before the initial box.cfg call for the default value to change to 0. Follow-up #5272 NO_DOC=amended an existing doc issue, see https://github.com/tarantool/doc/issues/3295
Showing
- changelogs/unreleased/gh-5272-sync-timeout-default.md 13 additions, 0 deletionschangelogs/unreleased/gh-5272-sync-timeout-default.md
- src/box/box.cc 2 additions, 2 deletionssrc/box/box.cc
- src/box/lua/load_cfg.lua 71 additions, 22 deletionssrc/box/lua/load_cfg.lua
- test/box-tap/cfg.test.lua 1 addition, 2 deletionstest/box-tap/cfg.test.lua
Loading
Please register or sign in to comment