Skip to content

Commit 81efb85

Browse files
committed
Remove assertion that circular buffer entries are monotonic
GetOldestXmin *can* go backwards, see its comment. For the record, spotted by shardman's test_worker_failover_with_offline_neighbour test: apparently LR launcher background worker gets low oldestxmin on its start because it is not connected to any database. (cherry picked from commit a3554d5)
1 parent e1bacb7 commit 81efb85

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/access/transam/global_snapshot.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ GlobalSnapshotMapXmin(GlobalCSN snapshot_global_csn)
282282

283283
Assert(TransactionIdIsNormal(current_oldest_xmin));
284284
Assert(TransactionIdIsNormal(previous_oldest_xmin));
285-
Assert(TransactionIdFollowsOrEquals(current_oldest_xmin, previous_oldest_xmin));
286285

287286
gap = csn_seconds - last_csn_seconds;
288287
offset = csn_seconds % gsXidMap->size;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy