Hi, I've found a mistake in a comment of StrategyNotifyBgWriter in freelist.c. bgwriterLatch was replaced by bgwprocno in the following commit, but this is remained in the comment.
commit d72731a70450b5e7084991b9caa15cb58a2820df Author: Andres Freund <and...@anarazel.de> Date: Thu Dec 25 18:24:20 2014 +0100 Lockless StrategyGetBuffer clock sweep hot path. Attached a patch. -- Yugo Nagata <nag...@sraoss.co.jp>
diff --git a/src/backend/storage/buffer/freelist.c b/src/backend/storage/buffer/freelist.c index b68ab20..5d0a636 100644 --- a/src/backend/storage/buffer/freelist.c +++ b/src/backend/storage/buffer/freelist.c @@ -406,8 +406,8 @@ StrategySyncStart(uint32 *complete_passes, uint32 *num_buf_alloc) /* * StrategyNotifyBgWriter -- set or clear allocation notification latch * - * If bgwriterLatch isn't NULL, the next invocation of StrategyGetBuffer will - * set that latch. Pass NULL to clear the pending notification before it + * If bgwprocno isn't -1, the next invocation of StrategyGetBuffer will + * set that latch. Pass -1 to clear the pending notification before it * happens. This feature is used by the bgwriter process to wake itself up * from hibernation, and is not meant for anybody else to use. */
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers