Skip to content

Commit 1214b46

Browse files
Zhdanov0Alexander Zhdanov
andauthored
Remove the check in loadInventoryPage to make TRA_snapshot_state work more correctly (#8542)
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
1 parent 2caedd2 commit 1214b46

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/jrd/tpc.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,6 @@ void TipCache::loadInventoryPages(thread_db* tdbb, GlobalTpcHeader* header)
311311
header->oldest_transaction.store(hdr_oldest_transaction, std::memory_order_relaxed);
312312
header->latest_attachment_id.store(hdr_attachment_id, std::memory_order_relaxed);
313313

314-
// Check if TIP has any interesting transactions.
315-
// At database creation time, it doesn't and the code below breaks
316-
// if there isn't a single one transaction to care about.
317-
if (hdr_oldest_transaction >= hdr_next_transaction)
318-
return;
319-
320314
// Round down the oldest to a multiple of four, which puts the
321315
// transaction in temporary buffer on a byte boundary
322316
const TraNumber base = hdr_oldest_transaction & ~TRA_MASK;

0 commit comments

Comments
 (0)