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>
This commit is contained in:
parent
1d0968d5ac
commit
830ad21fa8
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user