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

Function REPL_trans_commit

src/jrd/replication/Publisher.cpp:431–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void REPL_trans_commit(thread_db* tdbb, jrd_tra* transaction)
432{
433 const auto replicator = transaction->tra_replicator;
434 if (!replicator)
435 return;
436
437 FbLocalStatus status;
438 replicator->commit(&status);
439
440 // Commit is a terminal routine, we cannot throw here
441 checkStatus(tdbb, status, transaction, false);
442
443 if (transaction->tra_replicator)
444 {
445 transaction->tra_replicator->dispose();
446 transaction->tra_replicator = nullptr;
447 }
448}
449
450void REPL_trans_rollback(thread_db* tdbb, jrd_tra* transaction)
451{

Callers 2

TRA_commitFunction · 0.85
retain_contextFunction · 0.85

Calls 3

checkStatusFunction · 0.85
commitMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected