Skip to content
Snippets Groups Projects
Commit 519f1388 authored by Roman Tsisyk's avatar Roman Tsisyk Committed by Konstantin Osipov
Browse files

Allow DML requests from on_replace triggers

Touch txn a little bit to support multistatement transactions in
autocommit mode.

This patch allow to perform DML requests from space:on_replace()
triggers. Trigerred requests are processed as a part of the original
transaction and entire transaction is rolled back in case of error.
Please note that there is still no support for nested transactions,
therefore a call to box.begin() from on_replace() trigger is not
allowed.

Recursive invocation is not forbidden, but limited to the maximal
depth of 4 to avoid stack overflow.

Proudly fixes #587
parent 1ba9f4a2
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