cb8e9e
From 61ad9dea00273f7d3c7ba893e17be04a5a29d48a Mon Sep 17 00:00:00 2001
cb8e9e
From: Avra Sengupta <asengupt@redhat.com>
cb8e9e
Date: Wed, 17 Jun 2015 14:18:32 +0530
cb8e9e
Subject: [PATCH 106/129] glusterd/mgmt_v3: Print the node info, with failure messages
cb8e9e
cb8e9e
While reporting multiple failure messages from different
cb8e9e
nodes, print the node ip and the failure stage.
cb8e9e
cb8e9e
>Reviewed-on: http://review.gluster.org/11234/
cb8e9e
Change-Id: I657d3debf1b509e4a27baf9e4b580f1ee32e3c5f
cb8e9e
BUG: 1121560
cb8e9e
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
cb8e9e
Reviewed-on: https://code.engineering.redhat.com/gerrit/51039
cb8e9e
Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
cb8e9e
Tested-by: Rajesh Joseph <rjoseph@redhat.com>
cb8e9e
---
cb8e9e
 xlators/mgmt/glusterd/src/glusterd-mgmt.c |    6 ++----
cb8e9e
 1 files changed, 2 insertions(+), 4 deletions(-)
cb8e9e
cb8e9e
diff --git a/xlators/mgmt/glusterd/src/glusterd-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-mgmt.c
cb8e9e
index f8e65ac..41e6391 100644
cb8e9e
--- a/xlators/mgmt/glusterd/src/glusterd-mgmt.c
cb8e9e
+++ b/xlators/mgmt/glusterd/src/glusterd-mgmt.c
cb8e9e
@@ -120,17 +120,15 @@ gd_mgmt_v3_collate_errors (struct syncargs *args, int op_ret, int op_errno,
cb8e9e
                                         err_string);
cb8e9e
                 }
cb8e9e
 
cb8e9e
-                cli_err_str = ((is_operrstr_blk) ? op_errstr : op_err);
cb8e9e
-
cb8e9e
                 if (args->errstr) {
cb8e9e
                         len = snprintf (err_str, sizeof(err_str),
cb8e9e
                                       "%s\n%s", args->errstr,
cb8e9e
-                                      cli_err_str);
cb8e9e
+                                      op_err);
cb8e9e
                         GF_FREE (args->errstr);
cb8e9e
                         args->errstr = NULL;
cb8e9e
                 } else
cb8e9e
                         len = snprintf (err_str, sizeof(err_str),
cb8e9e
-                                "%s", cli_err_str);
cb8e9e
+                                "%s", op_err);
cb8e9e
 
cb8e9e
                 gf_msg (this->name, GF_LOG_ERROR, 0,
cb8e9e
                         GD_MSG_MGMTV3_OP_FAIL, "%s", op_err);
cb8e9e
-- 
cb8e9e
1.7.1
cb8e9e