]> 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 48095/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 14 Sep 2022 16:49:27 +0000 (12:49 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Thu, 15 Sep 2022 02:57:35 +0000 (22:57 -0400)
commit28d04e865c1a6d7ef5c2e04727df498380a0b70c
tree3d2cc1cc4fba6d71febe359ec71035d1848930ca
parent00074425c51a7fc410c117d92ea08c26fdcdd909
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>
src/rgw/rgw_rados.cc