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

vinyl: fix crash on scheduler stop

If there's a dropped index referenced by a pending task on scheduler
stop, vy_scheduler_stop() will crash while trying to delete it:

  vy_scheduler_stop
   vy_task_delete
    vy_index_unref
     vy_index_delete
      vy_range_tree_free_cb
       vy_scheduler_remove_range

because there will be a range which is not on the dump/compact heap.

Fix that by completing all processed tasks and aborting (i.e. setting
status to -1 and calling ->complete) all pending tasks when stopping the
scheduler.
parent f921f614
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