box: drop 'execute' field from uninitialized box
Prior to this patch, it was possible to call box.execute() before box was initialized, i.e. before calling box.cfg(). This, however, caused box.cfg() to be called automatically, which could be problematic as some parameters could not be changed after box.cfg() was called. After this patch, box.execute() will only be available when the box has been initialized. Closes #4726 @TarantoolBot document Title: box.execute() now available only after initialization of box Previously, it was possible to call box.execute() before the box was configured, in which case the box was configured automatically, which could lead to problems with box parameters. Now box.execute() can only be called after the box has been properly configured. It is also forbidden to set language to SQL in a console with an unconfigured box.
Showing
- changelogs/unreleased/gh-4726-execute-field-in-box.md 4 additions, 0 deletionschangelogs/unreleased/gh-4726-execute-field-in-box.md
- src/box/lua/console.lua 3 additions, 0 deletionssrc/box/lua/console.lua
- src/box/lua/load_cfg.lua 0 additions, 37 deletionssrc/box/lua/load_cfg.lua
- test/box-luatest/gh_4726_box_execute_before_cfg_test.lua 15 additions, 0 deletionstest/box-luatest/gh_4726_box_execute_before_cfg_test.lua
- test/box-tap/gh-4231-box-execute-idempotence.test.lua 0 additions, 37 deletionstest/box-tap/gh-4231-box-execute-idempotence.test.lua
- test/box-tap/gh-4231-box-execute-locking.test.lua 0 additions, 69 deletionstest/box-tap/gh-4231-box-execute-locking.test.lua
Loading
Please register or sign in to comment