Tarantool CE/EE Documentation portal logo
Support
Updated at October 22, 2026   11:37 AM

box.on_rollback()

box.on_rollback(trigger-function [, old-trigger-function])

Define a trigger for execution when a transaction ends due to an event such as /reference/reference_lua/box_txn_management/rollback.

The parameters and warnings are exactly the same as for /reference/reference_lua/box_txn_management/on_commit.