schema: forbid creating a space with id = 0
We do not store id = 0 in xlog, yet when parsing the log file expect space id to be present in a request (a mandatory key). So a space with id 0 is not possible to recovery from a snapshot. Simply reserve id 0 to avoid the problem.
Showing
- src/box/alter.cc 13 additions, 4 deletionssrc/box/alter.cc
- test/box-py/call.result 1 addition, 1 deletiontest/box-py/call.result
- test/box-py/call.test.py 1 addition, 1 deletiontest/box-py/call.test.py
- test/box-py/snapshot.result 1 addition, 1 deletiontest/box-py/snapshot.result
- test/box-py/snapshot.test.py 1 addition, 1 deletiontest/box-py/snapshot.test.py
- test/box/alter.result 7 additions, 0 deletionstest/box/alter.result
- test/box/alter.test.lua 5 additions, 0 deletionstest/box/alter.test.lua
- test/box/sql.result 4 additions, 4 deletionstest/box/sql.result
- test/box/sql.test.lua 4 additions, 4 deletionstest/box/sql.test.lua
- test/engine/schema.result 0 additions, 58 deletionstest/engine/schema.result
- test/engine/schema.test.lua 0 additions, 21 deletionstest/engine/schema.test.lua
- test/xlog-py/misc.result 4 additions, 6 deletionstest/xlog-py/misc.result
- test/xlog-py/misc.test.py 4 additions, 4 deletionstest/xlog-py/misc.test.py
Loading
Please register or sign in to comment