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

Skip to content

Commit 5579177

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 9cb8381 commit 5579177

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
@@ -400,8 +400,8 @@ StrategySyncStart(uint32 *complete_passes, uint32 *num_buf_alloc)
400400
/*
401401
* StrategyNotifyBgWriter -- set or clear allocation notification latch
402402
*
403-
* If bgwriterLatch isn't NULL, the next invocation of StrategyGetBuffer will
404-
* set that latch. Pass NULL to clear the pending notification before it
403+
* If bgwprocno isn't -1, the next invocation of StrategyGetBuffer will
404+
* set that latch. Pass -1 to clear the pending notification before it
405405
* happens. This feature is used by the bgwriter process to wake itself up
406406
* from hibernation, and is not meant for anybody else to use.
407407
*/

0 commit comments

Comments
 (0)
0