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

Method internalCommit

src/jrd/jrd.cpp:2581–2616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2579
2580
2581void JTransaction::internalCommit(CheckStatusWrapper* user_status)
2582{
2583/**************************************
2584 *
2585 * g d s _ $ c o m m i t
2586 *
2587 **************************************
2588 *
2589 * Functional description
2590 * Commit a transaction.
2591 *
2592 **************************************/
2593 try
2594 {
2595 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
2596 check_database(tdbb);
2597
2598 try
2599 {
2600 JRD_commit_transaction(tdbb, getHandle());
2601 transaction = NULL;
2602 }
2603 catch (const Exception& ex)
2604 {
2605 transliterateException(tdbb, ex, user_status, "JTransaction::commit");
2606 return;
2607 }
2608 }
2609 catch (const Exception& ex)
2610 {
2611 ex.stuffException(user_status);
2612 return;
2613 }
2614
2615 successful_completion(user_status);
2616}
2617
2618
2619void JTransaction::commitRetaining(CheckStatusWrapper* user_status)

Callers

nothing calls this directly

Calls 5

check_databaseFunction · 0.85
JRD_commit_transactionFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
stuffExceptionMethod · 0.45

Tested by

no test coverage detected