MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / run_commit_triggers

Function run_commit_triggers

src/jrd/jrd.cpp:8515–8539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8513
8514
8515static void run_commit_triggers(thread_db* tdbb, jrd_tra* transaction)
8516{
8517/**************************************
8518 *
8519 * r u n _ c o m m i t _ t r i g g e r s
8520 *
8521 **************************************
8522 *
8523 * Functional description
8524 * Run ON TRANSACTION COMMIT triggers of a transaction.
8525 *
8526 **************************************/
8527 SET_TDBB(tdbb);
8528
8529 if (transaction->tra_flags & TRA_system)
8530 return;
8531
8532 // start a savepoint to rollback changes of all triggers
8533 AutoSavePoint savePoint(tdbb, transaction);
8534
8535 // run ON TRANSACTION COMMIT triggers
8536 EXE_execute_db_triggers(tdbb, transaction, TRIGGER_TRANS_COMMIT);
8537
8538 savePoint.release();
8539}
8540
8541
8542// verify_request_synchronization

Callers 3

check_autocommitFunction · 0.85
commitFunction · 0.85
prepare_traFunction · 0.85

Calls 3

SET_TDBBFunction · 0.85
EXE_execute_db_triggersFunction · 0.85
releaseMethod · 0.45

Tested by

no test coverage detected