]> 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 48231/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 14 Sep 2022 16:49:27 +0000 (12:49 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Fri, 23 Sep 2022 17:53:22 +0000 (13:53 -0400)
commit253041d768d5227d2f7e6a6781a1898c6da23551
treec046bcfdab3bd88777e0078367f1ab71ad51f989
parent01afcbaeded8804ab5e6875e5eba54f12df6f121
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