mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-24 15:46:29 +00:00
Refactor ReplInfo struct handling
Eventually we'll want to have this contain the optional replication info contained in the t_node_info struct, which should then contain a pointer to a ReplInfo struct.
This commit is contained in:
@@ -75,7 +75,7 @@ do_node_status(void)
|
||||
|
||||
ItemList warnings = {NULL, NULL};
|
||||
RecoveryType recovery_type = RECTYPE_UNKNOWN;
|
||||
ReplInfo replication_info = T_REPLINFO_INTIALIZER;
|
||||
ReplInfo replication_info;
|
||||
t_recovery_conf recovery_conf = T_RECOVERY_CONF_INITIALIZER;
|
||||
|
||||
char data_dir[MAXPGPATH] = "";
|
||||
@@ -90,6 +90,9 @@ do_node_status(void)
|
||||
return _do_node_status_is_shutdown_cleanly();
|
||||
}
|
||||
|
||||
init_replication_info(&replication_info);
|
||||
|
||||
|
||||
/* config file required, so we should have "conninfo" and "data_directory" */
|
||||
conn = establish_db_connection(config_file_options.conninfo, true);
|
||||
strncpy(data_dir, config_file_options.data_directory, MAXPGPATH);
|
||||
|
||||
Reference in New Issue
Block a user