diff options
author | Jeff Davis <jdavis@postgresql.org> | 2013-06-17 08:02:12 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2013-06-17 08:02:12 -0700 |
commit | b8fd1a09f382f04c41128fded4d56da2127ce92d (patch) | |
tree | e84773ab67d8daf81c5260e36086e727cdeec707 /src/backend/storage/buffer | |
parent | 2bc4ab4f9c2ed8d94c22c41fce05f97838f2fc42 (diff) | |
download | postgresql-b8fd1a09f382f04c41128fded4d56da2127ce92d.tar.gz postgresql-b8fd1a09f382f04c41128fded4d56da2127ce92d.zip |
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.
Diffstat (limited to 'src/backend/storage/buffer')
-rw-r--r-- | src/backend/storage/buffer/bufmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index c6b033cf417..8079226864d 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -2587,7 +2587,7 @@ IncrBufferRefCount(Buffer buffer) * (due to a race condition), so it cannot be used for important changes. */ void -MarkBufferDirtyHint(Buffer buffer) +MarkBufferDirtyHint(Buffer buffer, bool buffer_std) { volatile BufferDesc *bufHdr; Page page = BufferGetPage(buffer); @@ -2671,7 +2671,7 @@ MarkBufferDirtyHint(Buffer buffer) * rather than full transactionids. */ MyPgXact->delayChkpt = delayChkpt = true; - lsn = XLogSaveBufferForHint(buffer); + lsn = XLogSaveBufferForHint(buffer, buffer_std); } LockBufHdr(bufHdr); |