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

vinyl: fix unwritten mem dropped if ddl

Since commit ba08c2a9 ("vinyl: rotate mem on ddl"), in-memory trees
can be rotated not only by dump/compaction tasks, but also by tx commit,
in case a DDL happened after the mem was created. Dump/compaction tasks
are unprepared for this - they always drop all frozen in-memory trees.
As a result, in case of DDL in the middle of dump/compaction execution,
an in-memory tree can be complete lost along with all its statements. To
fix this, let's count the number of trees we are actually dumping and
only delete them upon task completion.
parent d539c77f
No related branches found
No related tags found
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