summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-helper.c
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-11-03 02:13:31 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-03 04:25:36 -0700
commitba1d55c083a39f56077305037de0b619316b2717 (patch)
tree7651636eb37b7daa058cb2b5442df57be923b3d6 /xlators/cluster/dht/src/dht-helper.c
parent8ca96737a92a032334b745ffb6f4b872b8359fb0 (diff)
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 <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators/cluster/dht/src/dht-helper.c')
-rw-r--r--xlators/cluster/dht/src/dht-helper.c4
1 files changed, 4 insertions, 0 deletions
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);
}