Re: Fix a typo of comments in AutoVacLauncherMain - Mailing list pgsql-hackers

From Masahiko Sawada
Subject Re: Fix a typo of comments in AutoVacLauncherMain
Date
Msg-id CAD21AoAB-g5ZWi4-tb8YahD1Qhc3zVjzt2M-6Bh1GR9ySBU84A@mail.gmail.com
Whole thread Raw
In response to Fix a typo of comments in AutoVacLauncherMain  (Yugo Nagata <nagata@sraoss.co.jp>)
List pgsql-hackers
On Fri, Aug 1, 2025 at 8:20 AM Yugo Nagata <nagata@sraoss.co.jp> wrote:
>
> Hi,
>
> While reading autovacuum.c, I found the following comments in
> AutoVacLauncherMain() right before the call to rebuild_database_list();
>
>          * Create the initial database list.  The invariant we want this list to
>          * keep is that it's ordered by decreasing next_time.  As soon as an entry
>
> However, I couldn't fnd any variable named "next_time". I believe it actually refers
> to adl_next_worker and the comments should use "next_worker" as is done in other nereby
> comments. I've attahed a patch to address this.
>

I agree with your analysis. WIll push the patch shortly, barring any objections.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Add support for specifying tables in pg_createsubscriber.
Next
From: Tomas Vondra
Date:
Subject: Re: Bug in brin_minmax_multi_distance_numeric()