]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/sal: get_placement_target_names() returns void 53505/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 18 Sep 2023 15:15:02 +0000 (11:15 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 18 Sep 2023 15:15:04 +0000 (11:15 -0400)
commit3ad17ed3b222701bb6f4e3150989584645789d7c
tree551c3e21d40398f4f495c7f2a430c25f0a6b5828
parent9b46b9b0a0f3a607856379a1dc17baca024cb587
rgw/sal: get_placement_target_names() returns void

the function returned an integer error code, but two callers were
incorrectly testing the return value as a boolean

the function just returns placement ids that are in-memory, so none of
the drivers have a failure case; change the return value to void

Fixes: https://tracker.ceph.com/issues/62771
Signed-off-by: Casey Bodley <cbodley@redhat.com>
12 files changed:
src/rgw/driver/daos/rgw_sal_daos.cc
src/rgw/driver/daos/rgw_sal_daos.h
src/rgw/driver/motr/rgw_sal_motr.cc
src/rgw/driver/motr/rgw_sal_motr.h
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/driver/rados/rgw_sal_rados.h
src/rgw/rgw_op.cc
src/rgw/rgw_rest_swift.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_dbstore.cc
src/rgw/rgw_sal_dbstore.h
src/rgw/rgw_sal_filter.h