diff options
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 4 | ||||
-rw-r--r-- | xlators/cluster/dht/src/dht-selfheal.c | 2 |
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 cafc534ad..b9389210b 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 8c6751184..00424f27d 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; } |