diff options
Diffstat (limited to 'xlators/cluster/dht/src/dht-inode-write.c')
| -rw-r--r-- | xlators/cluster/dht/src/dht-inode-write.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/dht/src/dht-inode-write.c b/xlators/cluster/dht/src/dht-inode-write.c index ef7a114305a..44615cbcb51 100644 --- a/xlators/cluster/dht/src/dht-inode-write.c +++ b/xlators/cluster/dht/src/dht-inode-write.c @@ -28,7 +28,7 @@ dht_writev_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          dht_local_t *local = NULL;          int          ret   = -1; -        if (op_ret == -1 && !dht_inode_missing(op_errno)) { +        if (op_ret == -1) {                  goto out;          } @@ -179,7 +179,7 @@ dht_truncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          local = frame->local;          prev = cookie; -        if ((op_ret == -1) && !dht_inode_missing(op_errno)) { +        if ((op_ret == -1) && (op_errno != ENOENT)) {                  local->op_errno = op_errno;                  local->op_ret = -1;                  gf_log (this->name, GF_LOG_DEBUG, @@ -362,7 +362,7 @@ dht_file_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,          prev = cookie;          local->op_errno = op_errno; -        if ((op_ret == -1) && !dht_inode_missing(op_errno)) { +        if ((op_ret == -1) && (op_errno != ENOENT)) {                  gf_log (this->name, GF_LOG_DEBUG,                          "subvolume %s returned -1 (%s)",                          prev->this->name, strerror (op_errno));  | 
