]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: move rados-specific parts of RGWRealmWatcher into ConfigStore 63189/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 8 May 2025 19:01:48 +0000 (15:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 21 May 2025 13:28:11 +0000 (09:28 -0400)
commite70d9328fc7e272d5061686253dd3266c912b6e1
tree81f7667aef38c4ce3f1cd997dba375df7b5c88ec
parentf45c4b665fa3f5e22368490dc1ff1ecefd3c260b
rgw: move rados-specific parts of RGWRealmWatcher into ConfigStore

split RGWRealmWatcher in two halves, moving the rados-specific stuff
into a RadosRealmWatcher that inherits from RGWRealmWatcher

add factory function ConfigStore::create_realm_watcher() that returns a
generic RGWRealmWatcher. ConfigStore backends that don't support
watch/notify can return nullptr

rgw::AppMain uses this to avoid relying on checking for a "rados" driver
name, which doesn't work correctly when there are filters on top of the
RadosStore

Signed-off-by: Casey Bodley <cbodley@redhat.com>
13 files changed:
src/rgw/CMakeLists.txt
src/rgw/driver/dbstore/config/sqlite.cc
src/rgw/driver/dbstore/config/sqlite.h
src/rgw/driver/immutable_config/store.cc
src/rgw/driver/immutable_config/store.h
src/rgw/driver/rados/config/realm_watcher.cc [new file with mode: 0644]
src/rgw/driver/rados/config/realm_watcher.h [new file with mode: 0644]
src/rgw/driver/rados/config/store.h
src/rgw/rgw_appmain.cc
src/rgw/rgw_realm_reloader.h
src/rgw/rgw_realm_watcher.cc
src/rgw/rgw_realm_watcher.h
src/rgw/rgw_sal_config.h