diff options
Diffstat (limited to 'xlators/cluster/afr/src/afr.c')
-rw-r--r-- | xlators/cluster/afr/src/afr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 9d06cd0343a..4f158151b83 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -370,7 +370,7 @@ init (xlator_t *this) if (!priv->child_up) { gf_log (this->name, GF_LOG_ERROR, "Out of memory."); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } @@ -379,7 +379,7 @@ init (xlator_t *this) if (!priv->children) { gf_log (this->name, GF_LOG_ERROR, "Out of memory."); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } @@ -389,7 +389,7 @@ init (xlator_t *this) if (!priv->pending_key) { gf_log (this->name, GF_LOG_ERROR, "Out of memory."); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } @@ -404,7 +404,7 @@ init (xlator_t *this) if (-1 == ret) { gf_log (this->name, GF_LOG_ERROR, "asprintf failed to set pending key"); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } |