mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-04 00:02:52 -05:00 
			
		
		
		
	Mark the SLRU page as dirty when setting an entry in pg_serial. In the
passing, fix an incorrect comment.
This commit is contained in:
		
							parent
							
								
									7d43ae6713
								
							
						
					
					
						commit
						5234161ac1
					
				@ -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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user