]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: the big op_ret change
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 21 Jan 2016 20:20:27 +0000 (15:20 -0500)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 21 Jan 2016 23:16:17 +0000 (15:16 -0800)
commitf27e9c4c2671191fce03ed3c35969c79d6b5741d
treef60ec1a000b27e48b5bd12b0e82e2951364426ca
parenteeae702d6e83f506bfc11be9a3d8b8a90210479f
rgw: the big op_ret change

Move protected "int ret" member from immediate descendants of
RGWOp to a RGWOp, renamed to "int op_ret."

The new member can be accessed (via get_ret()) after the op has run,
which solves the problem of propagating the last error code reliably
to the executor.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Conflicts:
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_swift.cc
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_swift.cc