From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | Simon Riggs <simon(at)2ndquadrant(dot)com>, Aidan Van Dyk <aidan(at)highrise(dot)ca>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL |
Date: | 2010-03-24 13:36:33 |
Message-ID: | 3f0b79eb1003240636y6ba3d739idc4555f88c98e32e@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-docs pgsql-hackers |
On Wed, Mar 24, 2010 at 10:20 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>> Thanks. That's easily fixable (applies over the previous patch):
>>
>> --- a/src/backend/access/transam/xlog.c
>> +++ b/src/backend/access/transam/xlog.c
>> @@ -3773,7 +3773,7 @@ retry:
>> pagelsn.xrecoff = 0;
>> }
>> /* Wait for the next page to become available */
>> - if (!XLogPageRead(&pagelsn, emode, false, false))
>> + if (!XLogPageRead(&pagelsn, emode_arg, false, false))
>> return NULL;
>>
>> /* Check that the continuation record looks valid */
>
> Seems correct.
On second thought, the following lines seem to be necessary just after
calling XLogPageRead() since it reads new WAL file from another source.
> if (readSource == XLOG_FROM_STREAM || readSource == XLOG_FROM_ARCHIVE)
> emode = PANIC;
> else
> emode = emode_arg;
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-03-24 16:07:10 | pgsql: Now that we know last_statrequest > last_statwrite can be |
Previous Message | Fujii Masao | 2010-03-24 13:20:45 | Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2010-03-24 23:23:01 | Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL |
Previous Message | Fujii Masao | 2010-03-24 13:20:45 | Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2010-03-24 14:01:15 | Re: WIP: preloading of ispell dictionary |
Previous Message | Fujii Masao | 2010-03-24 13:20:45 | Re: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL |