sql: Add stat spaces during schema_init
If Tarantool is being starteed using data from older version, where stat tables were not system, it will definitely crash, since SQL statistics analyzer will try to access non- existing statistics tables (which will be added during upgrade). To avoid such crash: create dummy statistics spaces during schema init. Also, fix types for statistics space format: prohibit null values for statistic values and make sample format stronger.
Showing
- src/box/bootstrap.snap 0 additions, 0 deletionssrc/box/bootstrap.snap
- src/box/lua/upgrade.lua 18 additions, 12 deletionssrc/box/lua/upgrade.lua
- src/box/schema.cc 27 additions, 1 deletionsrc/box/schema.cc
- test/box-py/bootstrap.result 3 additions, 4 deletionstest/box-py/bootstrap.result
- test/box/access_misc.result 3 additions, 4 deletionstest/box/access_misc.result
- test/sql-tap/analyze9.test.lua 10 additions, 8 deletionstest/sql-tap/analyze9.test.lua
- test/xlog/upgrade.result 3 additions, 4 deletionstest/xlog/upgrade.result
Loading
Please register or sign in to comment