summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2017-01-24 10:46:34 +0900
committerTatsuo Ishii <ishii@postgresql.org>2017-01-24 10:46:34 +0900
commit451132415dc4f255b440b1645362cc125025ae5c (patch)
tree89e2316a434244b2be8dfa8e49bd4cc8bf27a569
parentdf9e034f958a5cd092f7f461d7a50156f6d076af (diff)
Revert "Fix comments in StrategyNotifyBgWriter()."
This reverts commit df9e034f958a5cd092f7f461d7a50156f6d076af, which tried to fix the comments to reflect the change of API of the function but actually the change had been made only for 9.5 or later.
-rw-r--r--src/backend/storage/buffer/freelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c
index d5bb4db37ee..a07212dc8ec 100644
--- a/src/backend/storage/buffer/freelist.c
+++ b/src/backend/storage/buffer/freelist.c
@@ -290,8 +290,8 @@ StrategySyncStart(uint32 *complete_passes, uint32 *num_buf_alloc)
/*
* StrategyNotifyBgWriter -- set or clear allocation notification latch
*
- * If bgwprocno isn't -1, the next invocation of StrategyGetBuffer will
- * set that latch. Pass -1 to clear the pending notification before it
+ * If bgwriterLatch isn't NULL, the next invocation of StrategyGetBuffer will
+ * set that latch. Pass NULL to clear the pending notification before it
* happens. This feature is used by the bgwriter process to wake itself up
* from hibernation, and is not meant for anybody else to use.
*/