summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2017-01-24 09:39:11 +0900
committerTatsuo Ishii <ishii@postgresql.org>2017-01-24 09:50:51 +0900
commitdf9e034f958a5cd092f7f461d7a50156f6d076af (patch)
tree50e4784c54e8fc364b787a4581feecde7eefc161 /src
parentc3364a0267cca6dabae72a973bdfbe1d54083385 (diff)
Fix comments in StrategyNotifyBgWriter().
The interface for the function was changed in d72731a70450b5e7084991b9caa15cb58a2820df but the comments of the function was not updated. Patch by Yugo Nagata.
Diffstat (limited to 'src')
-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 a07212dc8ec..d5bb4db37ee 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 bgwriterLatch isn't NULL, the next invocation of StrategyGetBuffer will
- * set that latch. Pass NULL to clear the pending notification before it
+ * If bgwprocno isn't -1, the next invocation of StrategyGetBuffer will
+ * set that latch. Pass -1 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.
*/