box: rework iterator_position entity
There is a big caveat in current implementation of position - it is represented as a string with unprintable chars in Lua - if user will need to save it to another database or pass to another client, unprintable chars can be affected. That is why we decided to redesign position entity - now it is just a key with MP_ARRAY header, encoded to base64 format. NO_CHANGELOG=redesign of unreleased feature NO_DOC=later Part of #7639
Showing
- src/box/box.cc 16 additions, 17 deletionssrc/box/box.cc
- src/box/index.cc 43 additions, 86 deletionssrc/box/index.cc
- src/box/index.h 20 additions, 29 deletionssrc/box/index.h
- src/box/lua/schema.lua 1 addition, 3 deletionssrc/box/lua/schema.lua
- src/box/memtx_tree.cc 3 additions, 3 deletionssrc/box/memtx_tree.cc
- src/box/vinyl.c 0 additions, 5 deletionssrc/box/vinyl.c
- src/trivia/util.h 1 addition, 0 deletionssrc/trivia/util.h
- test/engine-luatest/pagination_test.lua 23 additions, 23 deletionstest/engine-luatest/pagination_test.lua
- test/unit/iterator_position.c 41 additions, 80 deletionstest/unit/iterator_position.c
Loading
Please register or sign in to comment