| 282 | } |
| 283 | |
| 284 | void 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 | |
| 293 | void TipCache::loadInventoryPages(thread_db* tdbb, GlobalTpcHeader* header) |
| 294 | { |