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

vinyl: fix index use-after-free in scheduler

We don't remove dead index's ranges from the scheduler heap after we
scheduled a drop task for it - we only do it from the drop task itself.
As a result, we can happily go and schedule another task for the index
being already scheduled for destruction. This can result in the
index->ref == 1 assertion being violated in vy_task_drop_execute() or
memory corruption induced by use-after-free of a vy_index struct.
parent be39bb23
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