]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 9 May 2018 16:57:11 +0000 (12:57 -0400)
commit1f9d44d66cc4a5a7bcd4d36badbf7a488053ea71
tree8365d366ac351b9c8106e136546048ebe57587cb
parent5ad3ce9a9c2274d8e56ccb01bd93c66054d305f5
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>
(cherry picked from commit 2f94f63e705c33c4bf57923d96c747c5c6681e2d)
src/rgw/rgw_cr_rados.cc
src/rgw/rgw_cr_rados.h