Use stored node configuration file path when executing remote commands

Makes life much easier.
This commit is contained in:
Ian Barwick
2017-08-10 09:12:07 +09:00
parent 1d99a07b43
commit 5fb86771b1
4 changed files with 31 additions and 132 deletions

View File

@@ -83,7 +83,6 @@ typedef struct
int wait_register_sync_seconds;
/* "standby switchover" options */
char remote_config_file[MAXPGPATH];
bool always_promote;
bool force_rewind;
bool siblings_follow;
@@ -135,7 +134,7 @@ typedef struct
/* "standby register" options */ \
false, 0, \
/* "standby switchover" options */ \
"", false, false, false, \
false, false, false, \
/* "node status" options */ \
false, \
/* "node check" options */ \
@@ -208,7 +207,7 @@ extern void get_superuser_connection(PGconn **conn, PGconn **superuser_conn, PGc
extern bool remote_command(const char *host, const char *user, const char *command, PQExpBufferData *outputbuf);
extern void make_remote_repmgr_path(PQExpBufferData *outputbuf);
extern void make_remote_repmgr_path(PQExpBufferData *outputbuf, t_node_info *remote_node_record);
/* server control functions */
extern void get_server_action(t_server_action action, char *script, char *data_dir);