Обсуждение: pgsql: Put the logic to decide which synchronous standby is active into

Поиск
Список
Период
Сортировка

pgsql: Put the logic to decide which synchronous standby is active into

От
Heikki Linnakangas
Дата:
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(-)