Skip to content

Commit df9e034

Browse files
committed
Fix comments in StrategyNotifyBgWriter().
The interface for the function was changed in d72731a but the comments of the function was not updated. Patch by Yugo Nagata.
1 parent c3364a0 commit df9e034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/storage/buffer/freelist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ StrategySyncStart(uint32 *complete_passes, uint32 *num_buf_alloc)
290290
/*
291291
* StrategyNotifyBgWriter -- set or clear allocation notification latch
292292
*
293-
* If bgwriterLatch isn't NULL, the next invocation of StrategyGetBuffer will
294-
* set that latch. Pass NULL to clear the pending notification before it
293+
* If bgwprocno isn't -1, the next invocation of StrategyGetBuffer will
294+
* set that latch. Pass -1 to clear the pending notification before it
295295
* happens. This feature is used by the bgwriter process to wake itself up
296296
* from hibernation, and is not meant for anybody else to use.
297297
*/

0 commit comments

Comments
 (0)