summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-08-31 07:45:20 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-08-31 10:49:45 -0700
commitc9d43f40282af3b3b0c6675e587c573941192769 (patch)
tree87b7287b25aa1b1c97cdc2e7b4eac6f579d60375 /xlators/cluster/dht/src
parentd1a277785af5d9d0e38d0576d2a9c69e27a232df (diff)
fixes in 'gluster volume rebalance'
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1481 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1481
Diffstat (limited to 'xlators/cluster/dht/src')
-rw-r--r--xlators/cluster/dht/src/dht-common.c4
-rw-r--r--xlators/cluster/dht/src/dht-selfheal.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index cafc534ad4d..b9389210b99 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -1736,7 +1736,9 @@ dht_getxattr (call_frame_t *frame, xlator_t *this,
"Out of memory");
goto err;
}
- local->layout = layout;
+ local->layout = layout = dht_layout_new (this,
+ conf->subvolume_cnt);
+
dht_selfheal_new_directory (frame, dht_fix_layout_cbk,
layout);
return 0;
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c
index 8c6751184e3..00424f27dc9 100644
--- a/xlators/cluster/dht/src/dht-selfheal.c
+++ b/xlators/cluster/dht/src/dht-selfheal.c
@@ -438,7 +438,7 @@ dht_selfheal_new_directory (call_frame_t *frame,
local->selfheal.layout = dht_layout_ref (frame->this, layout);
dht_layout_sort_volname (layout);
- dht_selfheal_layout_new_directory (frame, &local->loc, layout);
+ dht_selfheal_layout_new_directory (frame, &local->loc, layout);
dht_selfheal_dir_xattr (frame, &local->loc, layout);
return 0;
}