summaryrefslogtreecommitdiffstats
path: root/xlators/lib
diff options
context:
space:
mode:
authorXavier Hernandez <xhernandez@datalab.es>2015-07-21 18:05:06 +0200
committerXavier Hernandez <xhernandez@datalab.es>2015-08-08 08:36:57 -0700
commit0e0c3ec84c73bc5fcda16ed743f9d3dc0a582c03 (patch)
treee1d08f3de51dff3b6f535c768f02936b361c8423 /xlators/lib
parent6408e0e864261479e2a1466f27baba2105aab287 (diff)
cluster/ec: Minimize usage of EIO error
>Change-Id: I82e245615419c2006a2d1b5e94ff0908d2f5e891 >BUG: 1245276 >Signed-off-by: Xavier Hernandez <xhernandez@datalab.es> >Reviewed-on: http://review.gluster.org/11741 >Tested-by: Gluster Build System <jenkins@build.gluster.com> >Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> >Tested-by: NetBSD Build System <jenkins@build.gluster.org> Change-Id: Ifd3d63f88a686a2963c5ba2e62110249f84f338d BUG: 1250864 Signed-off-by: Xavier Hernandez <xhernandez@datalab.es> Reviewed-on: http://review.gluster.org/11852 Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/lib')
-rw-r--r--xlators/lib/src/libxlator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/lib/src/libxlator.c b/xlators/lib/src/libxlator.c
index 11d0ef1caf8..627d74070e6 100644
--- a/xlators/lib/src/libxlator.c
+++ b/xlators/lib/src/libxlator.c
@@ -375,7 +375,7 @@ error:
int
gf_get_max_stime (xlator_t *this, dict_t *dst, char *key, data_t *value)
{
- int ret = -1;
+ int ret = -ENOMEM;
uint32_t *net_timebuf = NULL;
uint32_t *value_timebuf = NULL;
uint32_t host_timebuf[2] = {0,};
@@ -401,7 +401,7 @@ gf_get_max_stime (xlator_t *this, dict_t *dst, char *key, data_t *value)
if (!value_timebuf) {
gf_log (this->name, GF_LOG_WARNING,
"key=%s: getting value of stime failed", key);
- ret = -1;
+ ret = -EINVAL;
goto out;
}