sql: Intialize SQL subsystem after config is over
If after recovery first client to invoke SQL differs from ADMIN, then initialization of SQL subsystem will fail due to insufficient access rights. Problem is that SQL invokes create_from_tuple() to fill space_def structure, which in turn verifies access right. As far as SQL is a static part of Tarantool, there's no sense to initialize the system by demand. Change performs data dictionary initialization upon config completion. Regression test added as well. Closes #2483
Showing
- src/box/box.cc 2 additions, 1 deletionsrc/box/box.cc
- src/box/sql.c 12 additions, 0 deletionssrc/box/sql.c
- src/box/sql/prepare.c 1 addition, 1 deletionsrc/box/sql/prepare.c
- src/box/sql/sqliteInt.h 1 addition, 0 deletionssrc/box/sql/sqliteInt.h
- test/sql/gh2483-remote-persistency-check.result 35 additions, 0 deletionstest/sql/gh2483-remote-persistency-check.result
- test/sql/gh2483-remote-persistency-check.test.lua 22 additions, 0 deletionstest/sql/gh2483-remote-persistency-check.test.lua
Loading
Please register or sign in to comment