summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2015-11-26 10:27:37 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-01-30 18:26:55 -0800
commit5907d0b4d097cc625c7205963197d9b7e9b40573 (patch)
tree2a1b62c2ca45afc4bf0c52dee91465b29c850d9d /xlators
parent93a7c2a0c36a2ac21c6fff23cb30d6ca784a7995 (diff)
cluster/afr: change data self-heal size check for arbiter
Size mismatch should consider that arbiter brick will have zero size file to prevent data self-heal to spuriously trigger/assuming need of self-heals. >Change-Id: I179775d604236b9c8abfa360657abbb36abae829 >BUG: 1285634 >Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> >Reviewed-on: http://review.gluster.org/12755 >Reviewed-by: Ravishankar N <ravishankar@redhat.com> >Tested-by: Gluster Build System <jenkins@build.gluster.com> >Tested-by: NetBSD Build System <jenkins@build.gluster.org> >(cherry picked from commit 8d2594d77127ba7ea07a0d68afca0939e1817e39) Change-Id: I90243c01d6d83f46475c975a9bd34d9de84b87da BUG: 1283956 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/12768 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index 429f3593bfc..e04b6575e60 100644
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
@@ -488,6 +488,10 @@ afr_does_size_mismatch (xlator_t *this, unsigned char *sources,
if (!sources[i])
continue;
+ if (AFR_IS_ARBITER_BRICK (priv, i) &&
+ (replies[i].poststat.ia_size == 0))
+ continue;
+
if (!min)
min = &replies[i].poststat;