repmgr: assume node is actually shutting down if pingable and that's the reported status

This commit is contained in:
Ian Barwick
2018-01-12 21:53:37 +09:00
committed by Ian Barwick
parent 54b5c8ad94
commit 3d6437c8f8
4 changed files with 29 additions and 14 deletions

View File

@@ -4745,3 +4745,22 @@ print_node_status(NodeStatus node_status)
return "UNIDENTIFIED_STATUS";
}
const char *
print_pqping_status(PGPing ping_status)
{
switch (ping_status)
{
case PQPING_OK:
return "PQPING_OK";
case PQPING_REJECT:
return "PQPING_REJECT";
case PQPING_NO_RESPONSE:
return "PQPING_NO_RESPONSE";
case PQPING_NO_ATTEMPT:
return "PQPING_NO_ATTEMPT";
}
return "PQPING_UNKNOWN_STATUS";
}