Skip to content

Commit 5234161

Browse files
committed
Mark the SLRU page as dirty when setting an entry in pg_serial. In the
passing, fix an incorrect comment.
1 parent 7d43ae6 commit 5234161

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/storage/lmgr/predicate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ OldSerXidInit(void)
729729
/*
730730
* Record a committed read write serializable xid and the minimum
731731
* commitSeqNo of any transactions to which this xid had a rw-conflict out.
732-
* A zero seqNo means that there were no conflicts out from xid.
732+
* An invalid seqNo means that there were no conflicts out from xid.
733733
*/
734734
static void
735735
OldSerXidAdd(TransactionId xid, SerCommitSeqNo minConflictCommitSeqNo)
@@ -807,6 +807,7 @@ OldSerXidAdd(TransactionId xid, SerCommitSeqNo minConflictCommitSeqNo)
807807
slotno = SimpleLruReadPage(OldSerXidSlruCtl, targetPage, true, xid);
808808

809809
OldSerXidValue(slotno, xid) = minConflictCommitSeqNo;
810+
OldSerXidSlruCtl->shared->page_dirty[slotno] = true;
810811

811812
LWLockRelease(OldSerXidLock);
812813
}

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