box: fix Tarantool upgrade from 2.1.0 to 2.1.1
Tarantool could not start from the snapshot created by version 2.1.0 because the new version 2.1.1 does not support the index.opts.sql index opt and stops the execution. Introduced a special state OPT_DEF_LEGACY macro to ignore legacy options and introduced migration code in upgrade.lua.
Showing
- src/box/bootstrap.snap 0 additions, 0 deletionssrc/box/bootstrap.snap
- src/box/index_def.c 1 addition, 0 deletionssrc/box/index_def.c
- src/box/lua/upgrade.lua 18 additions, 1 deletionsrc/box/lua/upgrade.lua
- src/box/opt_def.c 4 additions, 0 deletionssrc/box/opt_def.c
- src/box/opt_def.h 4 additions, 0 deletionssrc/box/opt_def.h
- test/box-py/bootstrap.result 1 addition, 1 deletiontest/box-py/bootstrap.result
- test/sql/upgrade.result 49 additions, 0 deletionstest/sql/upgrade.result
- test/sql/upgrade.test.lua 18 additions, 0 deletionstest/sql/upgrade.test.lua
- test/sql/upgrade/2.1.0/00000000000000000003.snap 0 additions, 0 deletionstest/sql/upgrade/2.1.0/00000000000000000003.snap
Loading
Please register or sign in to comment