box: fix crashes if some box.info functions called before box.cfg
Before this patch if one called `vinyl`, `sql`, `gc` and `memory` functions from box.info() instance crashed. It's interesting that `replication_anon` functions worked ok. This patch fixes that crashes. Closes #9173 NO_DOC=bugfix (cherry picked from commit d85556c9)
Showing
- changelogs/unreleased/gh-9173-box-info-crash.md 4 additions, 0 deletionschangelogs/unreleased/gh-9173-box-info-crash.md
- src/box/lua/info.c 12 additions, 0 deletionssrc/box/lua/info.c
- test/box-luatest/gh_9173_box_info_before_box_cfg_test.lua 23 additions, 0 deletionstest/box-luatest/gh_9173_box_info_before_box_cfg_test.lua
Please register or sign in to comment