postgres.git / summary / log / commit / refs
commit 73293ebae2e48782804029211622d16ed39952ae
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Tue Jan 24 00:39:11 2017 +0000
First released in: 10.0, REL9_2_STABLE (reverted before release), REL9_3_STABLE (reverted before release), REL9_4_STABLE (reverted before release), 9.5.6, 9.6.2
Reverted by: dbaa621cb77b (in 9.2.20), 451132415dc4 (in 9.3.16), fb9d2ed6151d (in 9.4.11)
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.
src/backend/storage/buffer/freelist.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c
index b68ab2082e8..5d0a636ba8c 100644
--- a/src/backend/storage/buffer/freelist.c
+++ b/src/backend/storage/buffer/freelist.c
@@ -406,8 +406,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.
*/
[parent: 1a2d9a655a5d]