Re: making write location work (was: Efficient transaction-controlled synchronous replication) - Mailing list pgsql-hackers

From Robert Haas
Subject Re: making write location work (was: Efficient transaction-controlled synchronous replication)
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: making write location work (was: Efficient transaction-controlled synchronous replication)  (Tom Lane <[email protected]>)
List pgsql-hackers
On Wed, Mar 23, 2011 at 12:44 PM, Tom Lane <[email protected]> wrote:
> Robert Haas <[email protected]> writes:
>> Specifically, if we're not going to remove write location, then I
>> think we need to apply something like the attached.
>
>>                       while (walrcv_receive(0, &type, &buf, &len))
>>                               XLogWalRcvProcessMsg(type, buf, len);
>
>> +                     /* Let the master know that we received some data. */
>> +                     XLogWalRcvSendReply();
>
> What if we didn't actually receive any new data?

The portion of the code immediately preceding what's included in the
diff guards against that, and there is a second guard in
XLogWalRcvSendReply().

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Re: making write location work (was: Efficient transaction-controlled synchronous replication)
Next
From: Jim Nasby
Date:
Subject: Re: 2nd Level Buffer Cache