]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/rgw_gc/cls_rgw_gc: read config via cls_get_config crimson-rgw-cls-get-config wip-knrt-crimson-rgw-cls-get-config
authorKautilya Tripathi <kautilya.tripathi@ibm.com>
Tue, 10 Feb 2026 05:31:26 +0000 (11:01 +0530)
committerKautilya Tripathi <kautilya.tripathi@ibm.com>
Tue, 10 Feb 2026 09:38:50 +0000 (15:08 +0530)
commit9d186a194db4cc6211f1324e6f0cd10f72f93508
tree0f71797380323b358f6e94e7441cbc9f324417e3
parent6393ffa23e4c39ae1481930623ce082a9fad416d
cls/rgw_gc/cls_rgw_gc: read config via cls_get_config

Commit https://github.com/ceph/ceph/commit/3877c1e37f2fa4e1574b57f05132288f210835a7
added new way to let CLS gain access to global configuration (`g_ceph_context`).

`cls_rgw_gc_queue_init` method is not using the new CLS call of `cls_get_config`
but instead directly uses `g_ceph_context`.

Crimson OSD implementation does **not** support `g_ceph_context` which results in a (SIGSEGV)
crash due to null access. Switching to `cls_get_config`, similarly to `cls_rgw.cc`, would allow
both OSD implementations to access the conf safely.

The above approach is well-defined due to the two orthogonal implementations of objclass.cc.
Classical OSD uses `src/osd/objclass.cc` While Crimson OSD uses `src/crimson/osd/objclass.cc`.

Signed-off-by: Kautilya Tripathi <kautilya.tripathi@ibm.com>
src/cls/rgw_gc/cls_rgw_gc.cc