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

Method rollback

src/jrd/extds/ExtDS.cpp:1636–1651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1634}
1635
1636void Transaction::rollback(thread_db* tdbb, bool retain)
1637{
1638 FbLocalStatus status;
1639 doRollback(&status, tdbb, retain);
1640
1641 Connection& conn = m_connection;
1642 if (!retain)
1643 {
1644 detachFromJrdTran();
1645 m_connection.deleteTransaction(tdbb, this);
1646 }
1647
1648 if (status->getState() & IStatus::STATE_ERRORS) {
1649 conn.raise(&status, tdbb, "transaction rollback");
1650 }
1651}
1652
1653Transaction* Transaction::getTransaction(thread_db* tdbb, Connection* conn, TraScope tra_scope)
1654{

Callers 4

doRollbackMethod · 0.45
clearTransactionsMethod · 0.45
jrdTransactionEndMethod · 0.45
closeMethod · 0.45

Calls 3

deleteTransactionMethod · 0.80
getStateMethod · 0.45
raiseMethod · 0.45

Tested by

no test coverage detected