Skip to content
Snippets Groups Projects
Commit c3561b13 authored by Nikita Pettik's avatar Nikita Pettik
Browse files

vinyl: rotate mem during index build on demand

Meanwhile in 17f6af7d the similar problem has been fixed, still it may
appear that in-memory level of secondary index being constructed has
lagging memory generation (in other words, it's values is less than
the value of current global generation). Such situation can be achieved
if yield which is required to check uniqueness of value being inserted
is too long. In this time gap other space may trigger dump process
bumping global memory generation counter, but dump itself is still not
yet scheduled.

So to get rid of generations mismatch, let's rotate in-memory level
after yield on demand.

Note that test is not included into the patch due to its complexity
and will be added as a follow-up.

Closes #5042
parent 080beba0
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