8000 Fix comments in StrategyNotifyBgWriter(). · hackingwu/postgres@0b7bcf7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b7bcf7

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 f21f81c commit 0b7bcf7

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
@@ -293,8 +293,8 @@ StrategySyncStart(uint32 *complete_passes, uint32 *num_buf_alloc)
293293
/*
294294
* StrategyNotifyBgWriter -- set or clear allocation notification latch
295295
*
296-
* If bgwriterLatch isn't NULL, the next invocation of StrategyGetBuffer will
297-
* set that latch. Pass NULL to clear the pending notification before it
296+
* If bgwprocno isn't -1, the next invocation of StrategyGetBuffer will
297+
* set that latch. Pass -1 to clear the pending notification before it
298298
* happens. This feature is used by the bgwriter process to wake itself up
299299
* from hibernation, and is not meant for anybody else to use.
300300
*/

0 commit comments

Comments
 (0)
0