Fix upstream node name in warning

This log_warning is supposed to reproduce the error in the block above,
but used the current node's name instead of the intended upstream node.
This commit is contained in:
Abhijit Menon-Sen
2018-08-12 09:15:13 +05:30
parent 78b969f208
commit 97cafd8c54

View File

@@ -1558,8 +1558,8 @@ do_standby_register(void)
exit(ERR_BAD_CONFIG);
}
log_warning(_("this node does not appear to be attached to upstream node \"%s\" (ID: %i)"),
config_file_options.node_name,
config_file_options.node_id);
upstream_node_record.node_name,
upstream_node_record.node_id);
}
PQfinish(upstream_conn);
}