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

Method initTransactionsPerBlock

src/jrd/tpc.cpp:284–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void TipCache::initTransactionsPerBlock(ULONG blockSize)
285{
286 if (m_transactionsPerBlock)
287 return;
288
289 const ULONG dataOffset = static_cast<ULONG>(offsetof(TransactionStatusBlock, data[0]));
290 m_transactionsPerBlock = (blockSize - dataOffset) / sizeof(CommitNumber);
291}
292
293void TipCache::loadInventoryPages(thread_db* tdbb, GlobalTpcHeader* header)
294{

Callers 1

initializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected