From c54e546040a15d6f1751816f59bdfba430b5fde3 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 26 Mar 2015 12:38:36 +0530 Subject: glfsheal: Do not print pending heals for non-afr xls Change-Id: Ib9a1998b964af1435e86de2c861ecb1c0e9026c9 BUG: 1203637 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/10005 Reviewed-by: Krutika Dhananjay Reviewed-by: Anuradha Talur Reviewed-by: Ravishankar N Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY --- heal/src/glfs-heal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'heal/src') 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; -- cgit