Skip to content
Snippets Groups Projects
Commit 323f33b5 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Roman Tsisyk
Browse files

vinyl: add missing version check to merge iterator restore

vy_stmt_iterator_iface->restore may yield (it does in case of
run iterator), which opens a time window for a concurrent dump
or compaction task to delete a merge iterator's source, so we
must check index and range version after each call to ->restore,
but we don't in vy_merge_iterator_restore(), which may result in
a crash.
parent 71616ab2
Loading
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