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

Method rollbackTransaction

src/jrd/replication/Replicator.cpp:222–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void Replicator::rollbackTransaction(CheckStatusWrapper* status, Transaction* transaction)
223{
224 try
225 {
226 auto& txnData = transaction->getData();
227
228 if (txnData.flushes || m_generators.hasData())
229 {
230 txnData.putGenerators(m_generators);
231 m_generators.clear();
232
233 if (txnData.flushes)
234 txnData.putTag(opRollbackTransaction);
235
236 flush(txnData, FLUSH_SYNC, BLOCK_END_TRANS);
237 }
238 }
239 catch (const Exception& ex)
240 {
241 ex.stuffException(status);
242 }
243}
244
245void Replicator::startSavepoint(CheckStatusWrapper* status, Transaction* transaction)
246{

Callers

nothing calls this directly

Calls 6

putGeneratorsMethod · 0.80
putTagMethod · 0.80
getDataMethod · 0.45
hasDataMethod · 0.45
clearMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected