alter: swap key_def memory on index alter
If an index is modified, in index_def_swap it does not swap key_defs. But index alter can change part types and comparators. Lets swap key_defs too. Note, that we can not swap key_defs by pointers - they are stored in memtx trees. Closes #3000
Showing
- src/box/index_def.c 2 additions, 4 deletionssrc/box/index_def.c
- src/box/key_def.cc 17 additions, 0 deletionssrc/box/key_def.cc
- src/box/key_def.h 4 additions, 0 deletionssrc/box/key_def.h
- test/box/alter.result 32 additions, 0 deletionstest/box/alter.result
- test/box/alter.test.lua 15 additions, 0 deletionstest/box/alter.test.lua
Loading
Please register or sign in to comment