mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
repmgrd: return predictable default values for get_primary_last_seen()
Return 0 if the node is not in recovery. In which case it's probably rather pointless calling this function anyway. Return -1 if the "last_seen" field has never been set (i.e. repmgrd hasn't started yet).
This commit is contained in: