From 3b03edebb6aaaad94ee84e0b39b9477b5386fcaa Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 25 Feb 2020 09:55:41 +0900 Subject: [PATCH] cluster show: correct timeline column length calculation Unlikely to have made a difference unless abnormally long priority or timeline values exist. --- repmgr-action-cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgr-action-cluster.c b/repmgr-action-cluster.c index 9a3e2e37..be6783a5 100644 --- a/repmgr-action-cluster.c +++ b/repmgr-action-cluster.c @@ -247,13 +247,13 @@ do_cluster_show(void) if (cell->node_info->replication_info->timeline_id == UNKNOWN_TIMELINE_ID) { /* display "?" */ - headers_show[SHOW_PRIORITY].cur_length = 1; + headers_show[SHOW_TIMELINE_ID].cur_length = 1; } else { initPQExpBuffer(&buf); appendPQExpBuffer(&buf, "%i", cell->node_info->replication_info->timeline_id); - headers_show[SHOW_PRIORITY].cur_length = strlen(buf.data); + headers_show[SHOW_TIMELINE_ID].cur_length = strlen(buf.data); termPQExpBuffer(&buf); }