Skip to content
Snippets Groups Projects
Commit a421a43b authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Konstantin Osipov
Browse files

vinyl: don't delete pinned mem on rotation

There's an optimization in vy_range_rotate_mem() which makes it delete
the active in-memory tree instead of moving it to the frozen list
provided it's empty. However, since commit 8116f209 ("vinyl: pin
in-memory trees on tx prepare") an empty in-memory tree may be pinned by
an ongoing transaction, in which deleting it will result in use after
free in vy_tx_write().
parent c12e0de9
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