mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Clean up variable usage in do_node_status()
Variable with the same name existed both at function level and within local code blocks.
This commit is contained in:
@@ -71,7 +71,6 @@ do_node_status(void)
|
|||||||
PQExpBufferData output;
|
PQExpBufferData output;
|
||||||
|
|
||||||
KeyValueList node_status = {NULL, NULL};
|
KeyValueList node_status = {NULL, NULL};
|
||||||
KeyValueListCell *cell = NULL;
|
|
||||||
NodeInfoList missing_slots = T_NODE_INFO_LIST_INITIALIZER;
|
NodeInfoList missing_slots = T_NODE_INFO_LIST_INITIALIZER;
|
||||||
|
|
||||||
ItemList warnings = {NULL, NULL};
|
ItemList warnings = {NULL, NULL};
|
||||||
@@ -466,6 +465,8 @@ do_node_status(void)
|
|||||||
|
|
||||||
if (runtime_options.output_mode == OM_CSV)
|
if (runtime_options.output_mode == OM_CSV)
|
||||||
{
|
{
|
||||||
|
KeyValueListCell *cell = NULL;
|
||||||
|
|
||||||
appendPQExpBuffer(&output,
|
appendPQExpBuffer(&output,
|
||||||
"\"Node name\",\"%s\"\n",
|
"\"Node name\",\"%s\"\n",
|
||||||
node_info.node_name);
|
node_info.node_name);
|
||||||
@@ -539,6 +540,8 @@ do_node_status(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
KeyValueListCell *cell = NULL;
|
||||||
|
|
||||||
appendPQExpBuffer(&output,
|
appendPQExpBuffer(&output,
|
||||||
"Node \"%s\":\n",
|
"Node \"%s\":\n",
|
||||||
node_info.node_name);
|
node_info.node_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user