summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/ec/src/ec-inode-read.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2016-01-22 12:11:40 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-02-08 07:33:12 -0800
commit95597b87e32b8615ca63f8b0b3bb8d488272d95d (patch)
tree54409eab880a550891bb970659567baef69a0fcd /xlators/cluster/ec/src/ec-inode-read.c
parent39dd62c09cb6f5ac0f7f8c3b054d1187f0131efe (diff)
cluster/ec: Never return -ve state
Ec manager shouldn't return -ve states, but it is, fixed that. Change-Id: I3f97c6ba2dbf9da724e8e1ee9b2c9da73f40013d BUG: 1300929 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/13278 Tested-by: Xavier Hernandez <xhernandez@datalab.es> Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/cluster/ec/src/ec-inode-read.c')
-rw-r--r--xlators/cluster/ec/src/ec-inode-read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-inode-read.c b/xlators/cluster/ec/src/ec-inode-read.c
index 2f54ca8bdf6..c3d9c879eb7 100644
--- a/xlators/cluster/ec/src/ec-inode-read.c
+++ b/xlators/cluster/ec/src/ec-inode-read.c
@@ -109,7 +109,7 @@ ec_manager_access(ec_fop_data_t *fop, int32_t state)
fop->cbks.access(fop->req_frame, fop, fop->xl, -1,
fop->error, NULL);
}
- return -EC_STATE_LOCK_REUSE;
+ return EC_STATE_LOCK_REUSE;
case -EC_STATE_LOCK_REUSE:
case EC_STATE_LOCK_REUSE: