From 2533d2b56be0f61b498a62478714036310704a25 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 7 Jun 2012 10:57:53 +0530 Subject: cluster/afr: Handle self-heal of files with holes Change-Id: I7a560b3633151c9c1e5a787d1c808d8a396ee754 BUG: 765424 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/3540 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/cluster/afr/src/afr-common.c') diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index f0fd6ffd005..d9c42cbcdbd 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -515,6 +515,8 @@ afr_local_sh_cleanup (afr_local_t *local, xlator_t *this) if (sh->fresh_parent_dirs) GF_FREE (sh->fresh_parent_dirs); + if (sh->write_needed) + GF_FREE (sh->write_needed); loc_wipe (&sh->parent_loc); loc_wipe (&sh->lookup_loc); -- cgit