memtx: make tree iterators stable
Make memtx tree iterator lookup lazy - in the first 'next' call. It makes the iterator similar to vinyl in case when a new tuple is inserted between a moment of iterator creation and a moment of first tuple retrieval. Make the inserted tuple visible to the iterator. Store last returned tuple in the iterator and if the tree is changed between iterations - search for the stored tuple and continue iteration from the found position. This will make the iteration stable and every next iteration will return proper (next or previous) tuple. Fix #1796
Loading
Please register or sign in to comment