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.
Loading
Please register or sign in to comment