Fix "cluster show --csv" output

This commit is contained in:
Ian Barwick
2017-09-01 00:14:01 +09:00
parent c7423ebb44
commit f9f05158d2

View File

@@ -109,7 +109,6 @@ do_cluster_show(void)
if (PQstatus(cell->node_info->conn) == CONNECTION_OK) if (PQstatus(cell->node_info->conn) == CONNECTION_OK)
{ {
cell->node_info->node_status = NODE_STATUS_UP; cell->node_info->node_status = NODE_STATUS_UP;
cell->node_info->recovery_type = get_recovery_type(cell->node_info->conn); cell->node_info->recovery_type = get_recovery_type(cell->node_info->conn);
} }
else else
@@ -385,7 +384,7 @@ do_cluster_show(void)
/* emit any warnings */ /* emit any warnings */
if (warnings.head != NULL && runtime_options.terse == false) if (warnings.head != NULL && runtime_options.terse == false && runtime_options.output_mode != OM_CSV)
{ {
ItemListCell *cell = NULL; ItemListCell *cell = NULL;