Re: Support for N synchronous standby servers - take 2 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Support for N synchronous standby servers - take 2
Date
Msg-id 2116.1460172770@sss.pgh.pa.us
Whole thread Raw
In response to Re: Support for N synchronous standby servers - take 2  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Support for N synchronous standby servers - take 2  (Masahiko Sawada <sawada.mshk@gmail.com>)
Re: Support for N synchronous standby servers - take 2  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Jeff Janes <jeff.janes@gmail.com> writes:
> When I compile now without cassert, I get the compiler warning:

> syncrep.c: In function 'SyncRepUpdateConfig':
> syncrep.c:878:6: warning: variable 'parse_rc' set but not used
> [-Wunused-but-set-variable]

If there's a good reason for that to be an Assert, I don't see it.
There are no callers of SyncRepUpdateConfig that look like they
need to, or should expect not to have to, tolerate errors.
I think the way to fix this is to turn the Assert into a plain
old test-and-ereport-ERROR.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: the buildfarm has measles
Next
From: Andreas Joseph Krogh
Date:
Subject: Covering + unique indexes