box: fix comparison of config tables
box.cfg() updates only those options that have actually changed. However, for replication it is not always true: box.cfg{replication = x} and box.cfg{replication = {x}} are treated differently, and as the result - replication is restarted. The patch fixes such behaviour. Closes #3711
Showing
- src/box/lua/load_cfg.lua 34 additions, 3 deletionssrc/box/lua/load_cfg.lua
- test/replication/errinj.result 1 addition, 1 deletiontest/replication/errinj.result
- test/replication/errinj.test.lua 1 addition, 1 deletiontest/replication/errinj.test.lua
- test/replication/misc.result 95 additions, 1 deletiontest/replication/misc.result
- test/replication/misc.test.lua 37 additions, 1 deletiontest/replication/misc.test.lua
Loading
Please register or sign in to comment