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

Method rollbackTransaction

src/jrd/replication/Applier.cpp:482–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void Applier::rollbackTransaction(thread_db* tdbb, TraNumber traNum, bool cleanup)
483{
484 jrd_tra* transaction = NULL;
485 if (!m_txnMap.get(traNum, transaction))
486 {
487 if (cleanup)
488 return;
489
490 raiseError("Transaction %" SQUADFORMAT" is not found", traNum);
491 }
492
493 LocalThreadContext context(tdbb, transaction);
494
495 TRA_rollback(tdbb, transaction, false, true);
496
497 m_txnMap.remove(traNum);
498}
499
500void Applier::cleanupTransactions(thread_db* tdbb)
501{

Callers 1

rollbackMethod · 0.45

Calls 4

TRA_rollbackFunction · 0.85
raiseErrorFunction · 0.70
getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected