mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Add buffer_std flag to MarkBufferDirtyHint().
MarkBufferDirtyHint() writes WAL, and should know if it's got a standard buffer or not. Currently, the only callers where buffer_std is false are related to the FSM. In passing, rename XLOG_HINT to XLOG_FPI, which is more descriptive. Back-patch to 9.3.
This commit is contained in:
@ -1118,7 +1118,7 @@ read_seq_tuple(SeqTable elm, Relation rel, Buffer *buf, HeapTuple seqtuple)
|
||||
HeapTupleHeaderSetXmax(seqtuple->t_data, InvalidTransactionId);
|
||||
seqtuple->t_data->t_infomask &= ~HEAP_XMAX_COMMITTED;
|
||||
seqtuple->t_data->t_infomask |= HEAP_XMAX_INVALID;
|
||||
MarkBufferDirtyHint(*buf);
|
||||
MarkBufferDirtyHint(*buf, true);
|
||||
}
|
||||
|
||||
seq = (Form_pg_sequence) GETSTRUCT(seqtuple);
|
||||
|
Reference in New Issue
Block a user