summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-13 06:42:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-13 05:46:55 -0700
commitf512ee469bd690f65e388f565b69e2395e43a4aa (patch)
tree7743b1ab150feb511f07d23c1bacbef541e02f87 /xlators/cluster/afr/src/afr.c
parent92a5fd621db0949637bb37e698709271e13610df (diff)
prevent spurious unlocks from afr selfheal
afr selfheal now remembers all the nodes on which locks were successfully held and sends unlocks only to those nodes Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 112 (parallel deletion of files mounted by different clients on the same back-end hangs and/or does not completely delete) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=112
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 df227ceae..3e1808721 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -200,6 +200,9 @@ afr_local_sh_cleanup (afr_local_t *local, xlator_t *this)
if (sh->success)
FREE (sh->success);
+ if (sh->locked_nodes)
+ FREE (sh->locked_nodes);
+
if (sh->healing_fd) {
fd_unref (sh->healing_fd);
sh->healing_fd = NULL;