Re: pg_receivexlog add synchronous mode

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pg_receivexlog add synchronous mode
Дата
Msg-id CAHGQGwH7j96R+XyWC7DZ=3J2yMG8nmJDdjcwP9hWe5O81V1uww@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_receivexlog add synchronous mode  (<furuyao@pm.nttdata.co.jp>)
Ответы Re: pg_receivexlog add synchronous mode  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
On Mon, Jun 30, 2014 at 7:09 PM,  <furuyao@pm.nttdata.co.jp> wrote:
>> Thanks for the review!
>>
>> +            if (secs <= 0)
>> +                secs = 1;    /* Always sleep at least 1 sec */
>> +
>> +            sleeptime = secs * 1000 + usecs / 1000;
>>
>> The above is the code which caused that problem. 'usecs' should have been
>> reset to zero when 'secs' are rounded up to 1 second. But not. Attached
>> is the updated version of the patch.
> Thank you for the refactoring v2 patch.
> I did a review of the patch.
>
> 1. applied cleanly and compilation was without warnings and errors
> 2. all regress tests was passed ok
> 3. sleeptime is ok when the --status-intarvall is set to 1

Thanks for reviewing the patch!

I think that this refactoring patch is useful for improving source code
readability and making the future patches simpler, whether we adopt
your patch or not. So, barring any objections, I'm thinking to commit
this refactoring patch.

Regards,

-- 
Fujii Masao



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Fresh initdb contains a few deleted B-Tree pages
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pgaudit - an auditing extension for PostgreSQL