Re: testing cvs HEAD - HS/SR - missing file

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: testing cvs HEAD - HS/SR - missing file
Дата
Msg-id 4B601001.8020508@enterprisedb.com
обсуждение исходный текст
Ответ на Re: testing cvs HEAD - HS/SR - missing file  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: testing cvs HEAD - HS/SR - missing file  (Fujii Masao <masao.fujii@gmail.com>)
Список pgsql-hackers
Fujii Masao wrote:
> *** a/src/backend/replication/walsender.c
> --- b/src/backend/replication/walsender.c
> ***************
> *** 661,666 **** XLogSend(StringInfo outMsg)
> --- 661,673 ----
>   
>           sentPtr = endptr;
>   
> +         if (sentPtr.xrecoff >= XLogFileSize)
> +         {
> +             /* crossing a logid boundary */
> +             sentPtr.xlogid += 1;
> +             sentPtr.xrecoff = 0;
> +         }
> + 
>           /*
>            * Read the log directly into the output buffer to prevent
>            * extra memcpy calls.
> 

Before that, endptr is advanced using XLByteAdvance() macro, which does
handle xlogid boundaries. Is XLByteAdvance() broken?

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Patch: psql \whoami option
Следующее
От: Tim Bunce
Дата:
Сообщение: Re: Add on_perl_init and proper destruction to plperl [PATCH]