Mark the SLRU page as dirty when setting an entry in pg_serial. In the
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 9 Jun 2011 09:10:14 +0000 (12:10 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 9 Jun 2011 09:10:14 +0000 (12:10 +0300)
passing, fix an incorrect comment.

src/backend/storage/lmgr/predicate.c

index 28da729b6dd0250c5a956348326b8181d280f0cc..7fa649997d7dd53dd4b7232901fd5826f31bb0c9 100644 (file)
@@ -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);
 }