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

Skip to content

Commit dbaa621

Browse files
committed
Revert "Fix comments in StrategyNotifyBgWriter()."
This reverts commit 0b7bcf7, 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.
1 parent 0b7bcf7 commit dbaa621

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 bgwprocno isn't -1, the next invocation of StrategyGetBuffer will
297-
* set that latch. Pass -1 to clear the pending notification before it
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
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