memtx: fix reverse iterators gap tracking
In case of reverse iterators, due to index limitations, we need to clarify the successor tuple early: this implies that the successor's story is not always at the top of the history chain, whilst we need to add the gap item to the story currently present in index — fix this by reusing the iterators' check logic to set the current iterator's tuple (which is considered the successor) to a tuple in index. CLoses #7409 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-4709-rev-iters-phantom-reads.md 3 additions, 0 deletionschangelogs/unreleased/gh-4709-rev-iters-phantom-reads.md
- src/box/memtx_tree.cc 31 additions, 8 deletionssrc/box/memtx_tree.cc
- src/box/memtx_tx.c 1 addition, 0 deletionssrc/box/memtx_tx.c
- test/box-luatest/gh_7409_rev_iters_phantom_reads_test.lua 80 additions, 0 deletionstest/box-luatest/gh_7409_rev_iters_phantom_reads_test.lua
Loading
Please register or sign in to comment