Skip to content
Snippets Groups Projects
Commit 55685eaf authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Roman Tsisyk
Browse files

vinyl: reset max_dump_size in compact_new()

The dump of index-wide run can start when compaction of one or more
ranges is in progress (see #2209). If we reset the max_dump_size and
compact_priority in compact_complete, there can be the following case:

   compact_prio = x      compact_prio = y > x   compact_prio = 0
    |                 |                       |    => y has lost.
    +-----------------|-----------------------+
    |                 compact                 |
    +-----------------|-----------------------+
         +------------+
         |    dump    |
         +------------+

Reset the compact_priority and max_dump_size in compact_new() and
restore the saved values on abort.

Needed for #2209
parent e98648e7
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