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

Skip to content

Commit fb9d2ed

Browse files
committed
Revert "Fix comments in StrategyNotifyBgWriter()."
This reverts commit a73cc3e, 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 a73cc3e commit fb9d2ed

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