use a constant to denote unknown replication lag

This commit is contained in:
Ian Barwick
2019-03-20 17:26:04 +09:00
parent 7204a0faf4
commit 314a1e8f4f
4 changed files with 5 additions and 5 deletions

View File

@@ -1408,7 +1408,7 @@ do_node_check_replication_lag(PGconn *conn, OutputMode mode, t_node_info *node_i
break;
}
}
else if (lag_seconds < 0)
else if (lag_seconds == UNKNOWN_REPLICATION_LAG)
{
status = CHECK_STATUS_UNKNOWN;