From 88479b11bdf364453fbeb4c83cf2e1d848dd545f Mon Sep 17 00:00:00 2001 From: Alexander Zhdanov Date: Fri, 25 Apr 2025 17:33:36 +0300 Subject: [PATCH] Remove the check in loadInventoryPage to make TRA_snapshot_state work more correctly --- src/jrd/tpc.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/jrd/tpc.cpp b/src/jrd/tpc.cpp index 01625cba4a0..8d7e96f81dc 100644 --- a/src/jrd/tpc.cpp +++ b/src/jrd/tpc.cpp @@ -314,12 +314,6 @@ void TipCache::loadInventoryPages(thread_db* tdbb, GlobalTpcHeader* header) header->oldest_transaction.store(hdr_oldest_transaction, std::memory_order_relaxed); header->latest_attachment_id.store(hdr_attachment_id, std::memory_order_relaxed); - // Check if TIP has any interesting transactions. - // At database creation time, it doesn't and the code below breaks - // if there isn't a single one transaction to care about. - if (hdr_oldest_transaction >= hdr_next_transaction) - return; - // Round down the oldest to a multiple of four, which puts the // transaction in temporary buffer on a byte boundary TraNumber base = hdr_oldest_transaction & ~TRA_MASK;