mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
cluster show: correct timeline column length calculation
Unlikely to have made a difference unless abnormally long priority or timeline values exist.
This commit is contained in:
@@ -247,13 +247,13 @@ do_cluster_show(void)
|
|||||||
if (cell->node_info->replication_info->timeline_id == UNKNOWN_TIMELINE_ID)
|
if (cell->node_info->replication_info->timeline_id == UNKNOWN_TIMELINE_ID)
|
||||||
{
|
{
|
||||||
/* display "?" */
|
/* display "?" */
|
||||||
headers_show[SHOW_PRIORITY].cur_length = 1;
|
headers_show[SHOW_TIMELINE_ID].cur_length = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
initPQExpBuffer(&buf);
|
initPQExpBuffer(&buf);
|
||||||
appendPQExpBuffer(&buf, "%i", cell->node_info->replication_info->timeline_id);
|
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);
|
termPQExpBuffer(&buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user