]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cls/rgw: gc_list uses ObjectOperation instead of IoCtx 58449/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 5 Jul 2024 22:01:11 +0000 (18:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 23 Jul 2024 12:45:37 +0000 (08:45 -0400)
commit32f58e70d4c310f56ab30e136866d0ac172780ac
tree3250806fc0039e0e33c117bb6125fb8b9a5b12b6
parenta23254d57fa8a2a6dbfda8b4ef1793996895ee5b
cls/rgw: gc_list uses ObjectOperation instead of IoCtx

clean up the only gc function that was hidden with CLS_CLIENT_HIDE_IOCTX

this allows rgw to use it asynchonously with rgw_rados_operate() and
optional_yield, and warn about blocking calls that should be async

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/rgw/driver/rados/rgw_gc.cc
src/test/cls_rgw/test_cls_rgw.cc