Fix comments in StrategyNotifyBgWriter().
authorTatsuo Ishii
Tue, 24 Jan 2017 00:39:11 +0000 (09:39 +0900)
committerTatsuo Ishii
Tue, 24 Jan 2017 00:50:51 +0000 (09:50 +0900)
The interface for the function was changed in
d72731a70450b5e7084991b9caa15cb58a2820df but the comments of the
function was not updated.

Patch by Yugo Nagata.

src/backend/storage/buffer/freelist.c

index a07212dc8ec47af73d605dd68668439b7ab6e9f2..d5bb4db37ee15b62ebf6ac20ff3af169c15a81e9 100644 (file)
@@ -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.
  */