Re: Support for N synchronous standby servers - take 2
| От | Tom Lane |
|---|---|
| Тема | Re: Support for N synchronous standby servers - take 2 |
| Дата | |
| Msg-id | 2116.1460172770@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Support for N synchronous standby servers - take 2 (Jeff Janes <jeff.janes@gmail.com>) |
| Ответы |
Re: Support for N synchronous standby servers - take 2
Re: Support for N synchronous standby servers - take 2 |
| Список | 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 по дате отправления: