Skip to content
Snippets Groups Projects
Commit 75f03a50 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

vinyl: fix crash if space is dropped while space.get is reading from it

In contrast to vinyl_iterator, vinyl_index_get doesn't take a reference
to the LSM tree while reading from it. As a result, if the LSM tree is
dropped in the meantime, vinyl_index_get will crash. Fix this issue by
surrounding vy_get with vy_lsm_ref/unref.

Closes #4109
parent ccd46a27
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