From 1f094f2519c163bd033ab535555448db34e9804d Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Tue, 2 Sep 2014 21:05:56 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/8586 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri --- xlators/cluster/afr/src/afr-self-heal-name.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xlators/cluster/afr/src/afr-self-heal-name.c b/xlators/cluster/afr/src/afr-self-heal-name.c index 9e7bb3bffa4..f8b887e9a24 100644 --- a/xlators/cluster/afr/src/afr-self-heal-name.c +++ b/xlators/cluster/afr/src/afr-self-heal-name.c @@ -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; } } -- cgit