]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix bool/int logic error when calling get_obj_head_ioctx 48230/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 14 Sep 2022 16:49:27 +0000 (12:49 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 28 Sep 2022 15:43:41 +0000 (11:43 -0400)
commit720ba01f0805b357a840203dfe64df87eee9adcd
tree8068e2deaadf5a90320c7a61163362137a9fd9be
parentcf519f96b57c7884bdcb1d8970bc9a6428dd3b6f
rgw: fix bool/int logic error when calling get_obj_head_ioctx

get_obj_head_ioctx returns an int where 0 indicates success. When
called in RGWRados::check_disk_state the result was treated as a
booleann with inverted logic. This fixes that error.

This was already fixed in PR #44616 as part of a larger commit, but
this PR unifies the codebase, so various backports are consistent.

This also adds additional logging.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 28d04e865c1a6d7ef5c2e04727df498380a0b70c)
src/rgw/rgw_rados.cc