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

alter: proscribe space truncate in transaction

Space truncation is implemented as recreation of a space and all its
indexes. On success the original space is deleted by the commit trigger,
while on failure the new space is deleted by the rollback trigger. The
commit/rollback triggers are always called before commit/rollback engine
methods, which makes space truncation incompatible with transactions:
engine commit/rollback may access a space that have already been deleted
by commit/rollback trigger installed by space truncation, resulting in a
crash. So let's forbid to use space.truncate from a transaction until
triggers are made transaction-friendly.

Closes #2525
parent 6cfefcd4
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