memtx: fix HASH index 'GT' iterator `next` method set incorrectly
The `next` method of memtx HASH index 'GT' iterator is initially set to 'GT' and is supposed to be set to 'GE' after first iteration: it is mistakenly set to the 'base' method instead of the full method which also does tuple clarification — this allows dirty reads. Move the `next` method change on first iteration to `WRAP_ITERATOR_METHOD` for clarity and correctness. Closes #7477 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-7477-memtx-hash-idx-gt-iter-dirty-reads.md 3 additions, 0 deletions.../unreleased/gh-7477-memtx-hash-idx-gt-iter-dirty-reads.md
- src/box/memtx_hash.cc 7 additions, 4 deletionssrc/box/memtx_hash.cc
- test/box-luatest/gh_7477_memtx_hash_idx_gt_iter_dirty_reads_test.lua 43 additions, 0 deletions...atest/gh_7477_memtx_hash_idx_gt_iter_dirty_reads_test.lua
Loading
Please register or sign in to comment