diff options
author | Sakshi <sabansal@redhat.com> | 2015-05-20 17:33:57 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-08-12 22:59:56 -0700 |
commit | 830ad21fa8100eb15586eee771274d6d3caf4347 (patch) | |
tree | 7298edba44c6085802ba63208deb2eea5d653fcc /xlators/cluster/dht | |
parent | 1d0968d5acd10188d4684bfb1d345c72ccefa75a (diff) |
dht : updating return value for layout set function
Change-Id: I7fd89e00b418391afe0a13c2033919c979cc8bbb
BUG: 789278
Signed-off-by: Sakshi <sabansal@redhat.com>
Reviewed-on: http://review.gluster.org/10869
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: N Balachandran <nbalacha@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/dht')
-rw-r--r-- | xlators/cluster/dht/src/dht-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-layout.c b/xlators/cluster/dht/src/dht-layout.c index 1bdad65b70f..ca600e9618a 100644 --- a/xlators/cluster/dht/src/dht-layout.c +++ b/xlators/cluster/dht/src/dht-layout.c @@ -89,7 +89,7 @@ dht_layout_set (xlator_t *this, inode_t *inode, dht_layout_t *layout) { dht_conf_t *conf = NULL; int oldret = -1; - int ret = 0; + int ret = -1; dht_layout_t *old_layout; conf = this->private; @@ -101,7 +101,7 @@ dht_layout_set (xlator_t *this, inode_t *inode, dht_layout_t *layout) oldret = dht_inode_ctx_layout_get (inode, this, &old_layout); if (layout) layout->ref++; - dht_inode_ctx_layout_set (inode, this, layout); + ret = dht_inode_ctx_layout_set (inode, this, layout); } UNLOCK (&conf->layout_lock); |