mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
cluster show/daemon status: report upstream node mismatches
When showing node information, check if the node's copy of its record shows a different upstream to the one expected according to the node where the command is executed. This helps visualise situations where the cluster is in an unexpected state, and provide a better idea of the actual state. For example, if a cluster has divided somehow and a set of nodes are following a new primary, when running "cluster show" etc., repmgr will now show the name of the primary those nodes are actually following, rather than the now outdated node name recorded on the other side of the split. A warning will also be issued about the situation.
This commit is contained in:
@@ -244,7 +244,7 @@ extern void make_remote_repmgr_path(PQExpBufferData *outputbuf, t_node_info *rem
|
||||
extern void make_repmgrd_path(PQExpBufferData *output_buf);
|
||||
|
||||
/* display functions */
|
||||
extern bool format_node_status(t_node_info *node_info, PQExpBufferData *details, ItemList *warnings);
|
||||
extern bool format_node_status(t_node_info *node_info, PQExpBufferData *node_status, PQExpBufferData *upstream, ItemList *warnings);
|
||||
extern void print_help_header(void);
|
||||
extern void print_status_header(int cols, ColHeader *headers);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user