From f085beebd03b2c8be2fa57039ad3cbcb6eaa66d3 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Tue, 13 Oct 2009 06:42:15 +0000 Subject: 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 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 --- 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 429ab97c5c4..eea030ad112 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -216,6 +216,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; -- cgit