cb8e9e
From 4659ab64bf803f6dcef3fe93d2613d84ef62fa43 Mon Sep 17 00:00:00 2001
cb8e9e
From: Ashish Pandey <aspandey@redhat.com>
cb8e9e
Date: Wed, 17 Jun 2015 12:40:06 +0530
cb8e9e
Subject: [PATCH 084/101]  ec: Display correct message after successful heal start
cb8e9e
cb8e9e
 Problem : While launching heal, it shows heal launch
cb8e9e
 was unsuccessful. However, internaly it was successfully
cb8e9e
 launched.
cb8e9e
cb8e9e
 Solution : Don't reset op_ret to -1 in for loop for
cb8e9e
 every brick.
cb8e9e
 Review link for master -
cb8e9e
 http://review.gluster.org/11267
cb8e9e
cb8e9e
Change-Id: Iff89fdaf6082767ed67523a56430a9e83e6984d3
cb8e9e
BUG: 1224137
cb8e9e
Signed-off-by: Ashish Pandey <aspandey@redhat.com>
cb8e9e
Reviewed-on: https://code.engineering.redhat.com/gerrit/50892
cb8e9e
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
cb8e9e
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
cb8e9e
---
cb8e9e
 xlators/cluster/ec/src/ec-heald.c |    2 +-
cb8e9e
 1 files changed, 1 insertions(+), 1 deletions(-)
cb8e9e
cb8e9e
diff --git a/xlators/cluster/ec/src/ec-heald.c b/xlators/cluster/ec/src/ec-heald.c
cb8e9e
index a7cf8f7..bfdf959 100644
cb8e9e
--- a/xlators/cluster/ec/src/ec-heald.c
cb8e9e
+++ b/xlators/cluster/ec/src/ec-heald.c
cb8e9e
@@ -541,10 +541,10 @@ ec_heal_op (xlator_t *this, dict_t *output, gf_xl_afr_op_t op, int xl_id)
cb8e9e
 
cb8e9e
         ec = this->private;
cb8e9e
 
cb8e9e
+        op_ret = -1;
cb8e9e
         for (i = 0; i < ec->nodes; i++) {
cb8e9e
                 snprintf (key, sizeof (key), "%d-%d-status", xl_id, i);
cb8e9e
 
cb8e9e
-                op_ret = -1;
cb8e9e
                 if (((ec->xl_up >> i) & 1) == 0) {
cb8e9e
                         ret = dict_set_str (output, key, "Brick is not connected");
cb8e9e
                 } else if (!ec->up) {
cb8e9e
-- 
cb8e9e
1.7.1
cb8e9e