Skip to content

Commit

Permalink
rgw: add errno entry for -ENOTEMPTY
Browse files Browse the repository at this point in the history
currently if master returns an -ENOTEMTPY, we return a -EIO as we dont
have an entry for this

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 40c3bfe)
  • Loading branch information
theanalyst committed May 4, 2016
1 parent 791eba8 commit 1527b56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rgw/rgw_http_errors.h
Expand Up @@ -153,6 +153,8 @@ static inline int rgw_http_error_to_errno(int http_err)
return -EACCES;
case 404:
return -ENOENT;
case 409:
return -ENOTEMPTY;
default:
return -EIO;
}
Expand Down

0 comments on commit 1527b56

Please sign in to comment.