glusterd/mgmt_v3: Print the node info, with failure messages

While reporting multiple failure messages from different
nodes, print the node ip and the failure stage.

Change-Id: I657d3debf1b509e4a27baf9e4b580f1ee32e3c5f
BUG: 1205596
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-on: http://review.gluster.org/11234
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
This commit is contained in:
Avra Sengupta
2015-06-17 14:18:32 +05:30
committed by Rajesh Joseph
parent 2b9efc9207
commit d9e688e42a

View File

@ -120,17 +120,15 @@ gd_mgmt_v3_collate_errors (struct syncargs *args, int op_ret, int op_errno,
err_string);
}
cli_err_str = ((is_operrstr_blk) ? op_errstr : op_err);
if (args->errstr) {
len = snprintf (err_str, sizeof(err_str),
"%s\n%s", args->errstr,
cli_err_str);
op_err);
GF_FREE (args->errstr);
args->errstr = NULL;
} else
len = snprintf (err_str, sizeof(err_str),
"%s", cli_err_str);
"%s", op_err);
gf_msg (this->name, GF_LOG_ERROR, 0,
GD_MSG_MGMTV3_OP_FAIL, "%s", op_err);