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

Method setupRecord

src/jrd/Savepoint.cpp:53–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53Record* UndoItem::setupRecord(jrd_tra* transaction) const
54{
55 if (m_format)
56 {
57 Record* const record = transaction->getUndoRecord(m_format);
58
59 auto undoSpace = transaction->getUndoSpace();
60 undoSpace->read(m_offset, record->getData(), record->getLength());
61
62 record->setTransactionNumber(transaction->tra_number);
63 return record;
64 }
65
66 return NULL;
67}
68
69void UndoItem::release(jrd_tra* transaction)
70{

Callers 6

get_undo_dataFunction · 0.80
garbageCollectIdxLiteMethod · 0.80
mergeToMethod · 0.80
undoMethod · 0.80
findNextUndoMethod · 0.80
listStayingUndoMethod · 0.80

Calls 6

getUndoRecordMethod · 0.80
getUndoSpaceMethod · 0.80
setTransactionNumberMethod · 0.80
readMethod · 0.45
getDataMethod · 0.45
getLengthMethod · 0.45

Tested by

no test coverage detected