repmgr: catch possible corner case when checking node shutdown status

It's conceivable that PQping is returning "no response" but the
shutdown hasn't quite completed.
This commit is contained in:
Ian Barwick
2018-01-10 14:56:00 +09:00
parent 5d57044118
commit faffb2a6e7
4 changed files with 34 additions and 10 deletions

View File

@@ -4692,6 +4692,8 @@ print_node_status(NodeStatus node_status)
return "UNKNOWN";
case NODE_STATUS_UP:
return "UP";
case NODE_STATUS_SHUTTING_DOWN:
return "SHUTTING_DOWN";
case NODE_STATUS_DOWN:
return "DOWN";
case NODE_STATUS_UNCLEAN_SHUTDOWN: