Put the logic to decide which synchronous standby is active into a function.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/syncrep.c | modified | +60 −28 |
| src/backend/replication/walsender.c | modified | +15 −37 |
| src/include/replication/syncrep.h | modified | +4 −0 |