[Tarantool-patches] [PATCH] vinyl: rotate mem during index build on demand

Nikita Pettik korablev at tarantool.org
Fri Jun 5 14:18:15 MSK 2020


On 05 Jun 01:52, Konstantin Osipov wrote:
> * Nikita Pettik <korablev at tarantool.org> [20/06/04 20:49]:
> > So to get rid of generations mismatch, let's rotate in-memory level
> > after yield on demand.
> 
> Could you please also elaborate why generation mismatch is bad
> here? What does it lead to specifically?

Because right after yield, vy_stmt is allocated using ls region
(in vy_build_insert_stmt()) and inserted into mem. Ls region does
not tolerate non-decreasing ids: otherwise region gc may truncate
data which is still accessible.
 
> 
> -- 
> Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list