From ba1d55c083a39f56077305037de0b619316b2717 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 3 Nov 2010 02:13:31 +0000 Subject: Fix DHT getxattr for directories When a heal on the directory or layout changes, the user xattrs do not get healed in dht. The current fix sends the getxattr call n all the subvolumes, aggregates it and sends the response Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 1991 (distribute directory self-heal does not copy user extended attributes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1991 --- xlators/cluster/dht/src/dht-helper.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/cluster/dht/src/dht-helper.c') diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c index f6ecebf93..dd2571647 100644 --- a/xlators/cluster/dht/src/dht-helper.c +++ b/xlators/cluster/dht/src/dht-helper.c @@ -221,6 +221,10 @@ dht_local_wipe (xlator_t *this, dht_local_t *local) GF_FREE (local->newpath); } + if (local->key) { + GF_FREE (local->key); + } + GF_FREE (local); } -- cgit