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>
This commit is contained in:
Pranith Kumar K 2015-03-26 12:38:36 +05:30 committed by Pranith Kumar Karampuri
parent 01d96d97f1
commit c54e546040

View File

@ -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,
@ -516,6 +516,7 @@ glfsh_gather_heal_info (glfs_t *fs, xlator_t *top_subvol, loc_t *rootloc,
THIS = old_THIS;
printf ("\n");
}
}
xl = xl->prev;
}