Skip to content

Commit a3554d5

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.
1 parent dff2f63 commit a3554d5

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)