diff options
author | Matan Breizman <mbreizma@redhat.com> | 2023-11-23 15:42:28 +0100 |
---|---|---|
committer | Matan Breizman <mbreizma@redhat.com> | 2023-11-29 10:23:44 +0100 |
commit | d8981bc7dcf3742fb4f2aeea67a11c412df5ea17 (patch) | |
tree | 791d67713ddaa84655b1a5ddb5af8754551c1ac5 /src/crimson/osd/pg_shard_manager.h | |
parent | crimson/osd: introduce osdmap trimming (diff) | |
download | ceph-d8981bc7dcf3742fb4f2aeea67a11c412df5ea17.tar.xz ceph-d8981bc7dcf3742fb4f2aeea67a11c412df5ea17.zip |
crimson/osd: update superblock managment
introduce PerShardState::superblock to be updated on
each shard once the OSDSingletonState instance is updated.
Note: PerShardState::superblock is a dependency for
PG::cluster_osdmap_trim_lower_bound().
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
Diffstat (limited to 'src/crimson/osd/pg_shard_manager.h')
-rw-r--r-- | src/crimson/osd/pg_shard_manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crimson/osd/pg_shard_manager.h b/src/crimson/osd/pg_shard_manager.h index bb74c18e371..1d101ce26dc 100644 --- a/src/crimson/osd/pg_shard_manager.h +++ b/src/crimson/osd/pg_shard_manager.h @@ -129,8 +129,6 @@ public: FORWARD_TO_OSD_SINGLETON(init_meta_coll) FORWARD_TO_OSD_SINGLETON(get_meta_coll) - FORWARD_TO_OSD_SINGLETON(set_superblock) - // Core OSDMap methods FORWARD_TO_OSD_SINGLETON(get_local_map) FORWARD_TO_OSD_SINGLETON(load_map_bl) @@ -140,6 +138,8 @@ public: seastar::future<> set_up_epoch(epoch_t e); + seastar::future<> set_superblock(OSDSuperblock superblock); + template <typename F> auto with_remote_shard_state(core_id_t core, F &&f) { return shard_services.invoke_on( |