]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: RGWRadosGetOmapKeysCR uses completion return code
authorCasey Bodley <cbodley@redhat.com>
Tue, 9 Jan 2018 20:02:19 +0000 (15:02 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 9 Jan 2018 20:10:06 +0000 (15:10 -0500)
commit2f94f63e705c33c4bf57923d96c747c5c6681e2d
tree817aafc406eb20153e494a8d5a32e411ffcae180
parenta5159a456610e4a00893ca23e470a55cec91fd75
rgw: RGWRadosGetOmapKeysCR uses completion return code

when this operates on a nonexistent object, the osd will reject the
request with ENOENT before trying to process the subops. so Objecter
will get back a subop return code of 0, try to decode an empty
bufferlist into the result and map that subop return code to EIO

by using the AioCompletion's return code, we get the correct result of
ENOENT instead

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_cr_rados.cc
src/rgw/rgw_cr_rados.h