Put the logic to decide which synchronous standby is active into a function.
This avoids duplicating the code. Michael Paquier, reviewed by Simon Riggs and me Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/b1332e98c441b40300670f55a4303bf69cd8b226 Modified Files -------------- src/backend/replication/syncrep.c | 88 ++++++++++++++++++++++++----------- src/backend/replication/walsender.c | 52 ++++++--------------- src/include/replication/syncrep.h | 4 ++ 3 files changed, 79 insertions(+), 65 deletions(-) -- Sent via pgsql-committers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers
