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

Method cleanupSavepoint

src/jrd/replication/Applier.cpp:525–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525void Applier::cleanupSavepoint(thread_db* tdbb, TraNumber traNum, bool undo)
526{
527 jrd_tra* transaction = NULL;
528 if (!m_txnMap.get(traNum, transaction))
529 raiseError("Transaction %" SQUADFORMAT" is not found", traNum);
530
531 LocalThreadContext context(tdbb, transaction);
532
533 if (!transaction->tra_save_point || transaction->tra_save_point->isRoot())
534 raiseError("Transaction %" SQUADFORMAT" has no savepoints to cleanup", traNum);
535
536 if (undo)
537 transaction->rollbackSavepoint(tdbb);
538 else
539 transaction->releaseSavepoint(tdbb);
540}
541
542void Applier::insertRecord(thread_db* tdbb, TraNumber traNum,
543 const MetaName& relName,

Callers

nothing calls this directly

Calls 5

raiseErrorFunction · 0.70
getMethod · 0.45
isRootMethod · 0.45
rollbackSavepointMethod · 0.45
releaseSavepointMethod · 0.45

Tested by

no test coverage detected