]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: rework error handling a bit
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 14 Apr 2011 23:14:48 +0000 (16:14 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 15 Apr 2011 00:13:33 +0000 (17:13 -0700)
commitb5f6eb12e1004888bf9dec6aa9c4b0499093ebfb
treed048ba1480e86384af5d67438993659b4da2b18f
parent4eb9d4f7582f13084bbcdfa3e6ad526d7a6d7de8
rgw: rework error handling a bit

Rados Gateway: get rid of RGWOp::err. We already have req_state::err and
that represents the same thing.

Standardize nomenclature for errors. 'errno' is our internal
representation of the error. 'code' is what is returned by S3.
'message' is the message at the end. Improve rgw_err.

dump_errno shouldn't modify req_state, but just dump the error.
A new function set_req_state_err sets the error based on an 'errno'.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
12 files changed:
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_fs.cc
src/rgw/rgw_log.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_os_auth.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rest.cc
src/rgw/rgw_rest.h
src/rgw/rgw_rest_os.cc
src/rgw/rgw_rest_s3.cc