From d40ce2cbcd41a25eb053f2970db9bbaab2dafa22 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Mon, 26 Oct 2009 05:07:31 +0000 Subject: 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 BUG: 193 (symlink contents not self-healed by replicate) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=193 --- xlators/cluster/afr/src/afr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/afr/src/afr.c') diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 641fa1551ec..cf4b8d3bca4 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); } -- cgit