Skip to content
Snippets Groups Projects
Commit 577dc6b4 authored by Alexandr Lyapunov's avatar Alexandr Lyapunov Committed by Konstantin Osipov
Browse files

memtx: introduce createSnapshotIterator method in index

Memtx checkpointing subsystem uses createReadViewForIterator and
destroyReadViewForIterator methods of Index. So these methods
are used only for ALL iterators before actual iteration starts.

 * no other cases of these methods using are covered by tests,
for example EQ iteration or using in the middle of iteration.

 * creation of general read view iterator is an overkill for
such a simple case as ALL iterator.

 * memtx read view iterators are incompatible with lazy lookup
and restoration patterns that are necessary for implementing
stable iterators.

Introduce new createSnapshotIterator method that would create
a special iterator for checkpointing and remove misleading
createReadViewForIterator and destroyReadViewForIterator methods.
parent 2160e4cb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment