Thread
-
Re: Some problems about cascading replication
Fujii Masao <masao.fujii@gmail.com> — 2011-08-17T04:27:11Z
On Tue, Aug 16, 2011 at 11:56 PM, Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> wrote: > I think there's a race condition here. If a walsender is just starting up, > it might not have registered itself as a walsender yet. It's actually been > there before this patch to suppress the log message. Right. To address this problem, I changed the patch so that "dead-end" walsender (i.e., cascading walsender even though recovery is not in progress) always emits the log message. This change would cause duplicate log messages if the standby promotion is requested while multiple walsenders including "dead-end" one are running. But since this is less likely to happen, I don't think it's worth writing code to suppress those duplicate log messages. Comments? I attached the updated version of the patch. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center