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

Method commitTransaction

src/jrd/replication/Applier.cpp:469–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469void Applier::commitTransaction(thread_db* tdbb, TraNumber traNum)
470{
471 jrd_tra* transaction = NULL;
472 if (!m_txnMap.get(traNum, transaction))
473 raiseError("Transaction %" SQUADFORMAT" is not found", traNum);
474
475 LocalThreadContext context(tdbb, transaction);
476
477 TRA_commit(tdbb, transaction, false);
478
479 m_txnMap.remove(traNum);
480}
481
482void Applier::rollbackTransaction(thread_db* tdbb, TraNumber traNum, bool cleanup)
483{

Callers 1

commitMethod · 0.45

Calls 4

TRA_commitFunction · 0.85
raiseErrorFunction · 0.70
getMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected