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:
parent
01d96d97f1
commit
c54e546040
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user