summaryrefslogtreecommitdiffstats
path: root/heal/src/glfs-heal.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-03-26 12:38:36 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-03-26 04:12:20 -0700
commitc54e546040a15d6f1751816f59bdfba430b5fde3 (patch)
tree53afcd5cf819b3480616d7c26a53e0dcc0602f8d /heal/src/glfs-heal.c
parent01d96d97f1bae4f83321285c701b93f2a668ad25 (diff)
glfsheal: Do not print pending heals for non-afr xls
Change-Id: Ib9a1998b964af1435e86de2c861ecb1c0e9026c9 BUG: 1203637 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/10005 Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Anuradha Talur <atalur@redhat.com> Reviewed-by: Ravishankar N <ravishankar@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'heal/src/glfs-heal.c')
-rw-r--r--heal/src/glfs-heal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index 74cce32fb7c..06dea1fff74 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -507,7 +507,7 @@ glfsh_gather_heal_info (glfs_t *fs, xlator_t *top_subvol, loc_t *rootloc,
while (xl) {
if (strcmp (xl->type, "protocol/client") == 0) {
afr_xl = _get_afr_ancestor (xl);
- if (afr_xl)
+ if (afr_xl) {
old_THIS = THIS;
THIS = afr_xl;
glfsh_print_pending_heals (fs, top_subvol,
@@ -515,6 +515,7 @@ glfsh_gather_heal_info (glfs_t *fs, xlator_t *top_subvol, loc_t *rootloc,
heal_op);
THIS = old_THIS;
printf ("\n");
+ }
}
xl = xl->prev;