Re: Re: Slave enters in recovery and promotes when WAL stream with master is cut + delay master/slave

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Re: Slave enters in recovery and promotes when WAL stream with master is cut + delay master/slave
Дата
Msg-id 20130118142035.GA4063@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Slave enters in recovery and promotes when WAL stream with master is cut + delay master/slave  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund escribió:
> On 2013-01-18 08:24:31 +0900, Michael Paquier wrote:
>
> > The replication delays are still here.
>
> That one is caused by this nice bug, courtesy of yours truly:
> diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
> index 90ba32e..1174493 100644
> --- a/src/backend/access/transam/xlog.c
> +++ b/src/backend/access/transam/xlog.c
> @@ -8874,7 +8874,7 @@ retry:
>     /* See if we need to retrieve more data */
>     if (readFile < 0 ||
>         (readSource == XLOG_FROM_STREAM &&
> -        receivedUpto <= targetPagePtr + reqLen))
> +        receivedUpto < targetPagePtr + reqLen))
>     {
>         if (StandbyMode)
>         {

Pushed.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: WIP patch for hint bit i/o mitigation
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Re: [PATCH 1/5] Centralize Assert* macros into c.h so its common between backend/frontend