cluster/afr: Minor fixes to #8574

* Fixed a bug in afr_selfheal_name_type_mismatch_check()
* Fixed indentation
* Removed redundant 'continue' statements

Change-Id: Ie58b5dec9085ce9fe46ae9f244ebae1b1cef7ac5
BUG: 1132469
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/8586
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
This commit is contained in:
Krutika Dhananjay 2014-09-02 21:05:56 +05:30 committed by Pranith Kumar Karampuri
parent e03559c20a
commit 1f094f2519

View File

@ -291,12 +291,11 @@ afr_selfheal_name_type_mismatch_check (xlator_t *this, struct afr_reply *replies
priv->children[i]->name,
replies[type_idx].poststat.ia_type,
priv->children[type_idx]->name);
return -EIO;
return -EIO;
}
inode_type = replies[i].poststat.ia_type;
type_idx = i;
}
inode_type = replies[i].poststat.ia_type;
type_idx = i;
continue;
}
return 0;
}
@ -345,7 +344,6 @@ afr_selfheal_name_gfid_mismatch_check (xlator_t *this, struct afr_reply *replies
gfid = &replies[i].poststat.ia_gfid;
gfid_idx_iter = i;
continue;
}
}