summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-10-26 05:07:31 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-26 07:09:28 -0700
commitd40ce2cbcd41a25eb053f2970db9bbaab2dafa22 (patch)
treec55981992ef4549c774e4500c1c25d3a6b7f3a9e /xlators/cluster/afr/src/afr.c
parent82dea3043878099e392b71bef9ae5de616ac5533 (diff)
cluster/afr: Check the target of symlink's in entry self-heal.
During entry self-heal, make sure not only that a symlink exists on all subvolumes, but also that their targets match. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 193 (symlink contents not self-healed by replicate) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=193
Diffstat (limited to 'xlators/cluster/afr/src/afr.c')
-rw-r--r--xlators/cluster/afr/src/afr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 641fa1551..cf4b8d3bc 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -224,6 +224,9 @@ afr_local_sh_cleanup (afr_local_t *local, xlator_t *this)
sh->healing_fd = NULL;
}
+ if (sh->linkname)
+ FREE (sh->linkname);
+
loc_wipe (&sh->parent_loc);
}