summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2011-06-09 09:10:14 +0000
committerHeikki Linnakangas2011-06-09 09:10:14 +0000
commit5234161ac10350e009874e4872935a6133d8f0fc (patch)
tree00917f910dcee505289cf105e83439bf43b4fc36
parent7d43ae6713223164be017be6e866868d1d7a8430 (diff)
Mark the SLRU page as dirty when setting an entry in pg_serial. In the
passing, fix an incorrect comment.
-rw-r--r--src/backend/storage/lmgr/predicate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c
index 28da729b6dd..7fa649997d7 100644
--- a/src/backend/storage/lmgr/predicate.c
+++ b/src/backend/storage/lmgr/predicate.c
@@ -729,7 +729,7 @@ OldSerXidInit(void)
/*
* Record a committed read write serializable xid and the minimum
* commitSeqNo of any transactions to which this xid had a rw-conflict out.
- * A zero seqNo means that there were no conflicts out from xid.
+ * An invalid seqNo means that there were no conflicts out from xid.
*/
static void
OldSerXidAdd(TransactionId xid, SerCommitSeqNo minConflictCommitSeqNo)
@@ -807,6 +807,7 @@ OldSerXidAdd(TransactionId xid, SerCommitSeqNo minConflictCommitSeqNo)
slotno = SimpleLruReadPage(OldSerXidSlruCtl, targetPage, true, xid);
OldSerXidValue(slotno, xid) = minConflictCommitSeqNo;
+ OldSerXidSlruCtl->shared->page_dirty[slotno] = true;
LWLockRelease(OldSerXidLock);
}