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

Method rollbackRetaining

src/jrd/jrd.cpp:4087–4121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4085
4086
4087void JTransaction::rollbackRetaining(CheckStatusWrapper* user_status)
4088{
4089/**************************************
4090 *
4091 * i s c _ r o l l b a c k _ r e t a i n i n g
4092 *
4093 **************************************
4094 *
4095 * Functional description
4096 * Abort a transaction but keep the environment valid
4097 *
4098 **************************************/
4099 try
4100 {
4101 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
4102 check_database(tdbb);
4103
4104 try
4105 {
4106 JRD_rollback_retaining(tdbb, getHandle());
4107 }
4108 catch (const Exception& ex)
4109 {
4110 transliterateException(tdbb, ex, user_status, "JTransaction::rollbackRetaining");
4111 return;
4112 }
4113 }
4114 catch (const Exception& ex)
4115 {
4116 ex.stuffException(user_status);
4117 return;
4118 }
4119
4120 successful_completion(user_status);
4121}
4122
4123
4124void JTransaction::rollback(CheckStatusWrapper* user_status)

Callers 2

doRollbackMethod · 0.45
mainFunction · 0.45

Calls 5

check_databaseFunction · 0.85
JRD_rollback_retainingFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
stuffExceptionMethod · 0.45

Tested by

no test coverage detected