Revert "Fix comments in StrategyNotifyBgWriter()."
authorTatsuo Ishii <[email protected]>
Tue, 24 Jan 2017 01:42:27 +0000 (10:42 +0900)
committerTatsuo Ishii <[email protected]>
Tue, 24 Jan 2017 01:42:27 +0000 (10:42 +0900)
This reverts commit 0b7bcf7ad2f1061664e6b517a3b4feabee0af00a, 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.

src/backend/storage/buffer/freelist.c

index 9572c1c8b8fb5e9ec1a74ece0f44e60413699136..7c6ba70eb8545913453cee28a032a0b8f8deb051 100644 (file)
@@ -293,8 +293,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.
  */