Put the logic to decide which synchronous standby is active into a function.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b1332e98c441b40300670f55a4303bf69cd8b226
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-12-12T12:26:42Z
Releases: 9.5.0
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