From 168bb24a60643e2aedb90170c3d8d3c447c5c5c6 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 20 Nov 2013 12:46:58 -0800 Subject: cluster/dht: set layout in inode ctx even if linkfile fails Creating linkfile could have failed, but we dont care about linkfile for setting layout in the inode ctx (could be EEXIST etc.) So ignore @inode in cbk and pick it up from local->loc.inode Change-Id: I2952799d7ae0d3441b84b2ca2981afd75d7576e2 BUG: 1032859 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/6358 Tested-by: Gluster Build System --- xlators/cluster/dht/src/dht-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 7bfe127189a..6b662c67bc4 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -738,7 +738,7 @@ dht_lookup_linkfile_create_cbk (call_frame_t *frame, void *cookie, cached_subvol = local->cached_subvol; conf = this->private; - ret = dht_layout_preset (this, local->cached_subvol, inode); + ret = dht_layout_preset (this, local->cached_subvol, local->loc.inode); if (ret < 0) { gf_log (this->name, GF_LOG_DEBUG, "failed to set layout for subvolume %s", -- cgit