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

Method commitRetaining

src/jrd/jrd.cpp:2619–2653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2617
2618
2619void JTransaction::commitRetaining(CheckStatusWrapper* user_status)
2620{
2621/**************************************
2622 *
2623 * g d s _ $ c o m m i t _ r e t a i n i n g
2624 *
2625 **************************************
2626 *
2627 * Functional description
2628 * Commit a transaction.
2629 *
2630 **************************************/
2631 try
2632 {
2633 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
2634 check_database(tdbb);
2635
2636 try
2637 {
2638 JRD_commit_retaining(tdbb, getHandle());
2639 }
2640 catch (const Exception& ex)
2641 {
2642 transliterateException(tdbb, ex, user_status, "JTransaction::commitRetaining");
2643 return;
2644 }
2645 }
2646 catch (const Exception& ex)
2647 {
2648 ex.stuffException(user_status);
2649 return;
2650 }
2651
2652 successful_completion(user_status);
2653}
2654
2655
2656ITransaction* JTransaction::join(CheckStatusWrapper* user_status, ITransaction* transaction)

Callers 4

doCommitMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 5

check_databaseFunction · 0.85
JRD_commit_retainingFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
stuffExceptionMethod · 0.45

Tested by

no test coverage detected