standby switchover: improve directory check failure handling

It's possible that the remote data directory check will fail if e.g.
connection configuration is not consistent across all nodes. This
modification ensures a database error connection is reported, rather
than a spurios issue with the data directory configuration.
This commit is contained in:
Ian Barwick
2020-04-15 10:39:30 +09:00
parent 78f89a4d47
commit 32dde4eaaf
3 changed files with 84 additions and 18 deletions

View File

@@ -221,6 +221,13 @@ typedef enum
JOIN_FAIL_NO_REPLICATION
} standy_join_status;
typedef enum
{
REMOTE_ERROR_UNKNOWN = -1,
REMOTE_ERROR_NONE,
REMOTE_ERROR_DB_CONNECTION,
REMOTE_ERROR_CONNINFO_PARSE
} t_remote_error_type;
typedef struct ColHeader
{