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 <avati@redhat.com> Reviewed-on: http://review.gluster.org/6319 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
parent
d1879d04e3
commit
9f793d70ba
@ -750,7 +750,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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user