Re: pg_ctl promote wait - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: pg_ctl promote wait
Date
Msg-id e2d97307-327c-dcf7-a692-30a41b0aa20e@2ndquadrant.com
Whole thread Raw
In response to Re: pg_ctl promote wait  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: pg_ctl promote wait  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-hackers
On 8/11/16 9:28 AM, Michael Paquier wrote:
> I have looked at them and the changes are looking fine for me. So I
> have switched the patch as ready for committer, aka you.
> 
> Just a nit:
> +       if (wait_seconds > 0)
> +       {
> +           sleep(1);
> +           wait_seconds--;
> +           continue;
> +       }
> This may be better this pg_usleep() instead of sleep().

Committed with that adjustment.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: New SQL counter statistics view (pg_stat_sql)
Next
From: Oskari Saarenmaa
Date:
Subject: Re: Hash Indexes