From: Kefu Chai Date: Mon, 8 Jun 2026 08:54:47 +0000 (+0800) Subject: crimson/osd: remove OSD::startup_time X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=acbfd2de97254f97bd098e83a94c5819adcc34d1;p=ceph.git crimson/osd: remove OSD::startup_time OSD::startup_time was added in 91c0df81, in which was added to provide a monotomic increasing timestamp representing the startup time. but later, we decided to keep track of this timestamp in PerShardState. but we didn't remove OSD::startup_time when adding PerShardState::get_mnow(). in this change, we remove the unused OSD::startup_time. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index 1404a85bfc7..c7288bef612 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -491,7 +491,7 @@ seastar::future<> OSD::start() cpu_cores.empty()) { clog->info() << "for optimal performance please set crimson_cpu_set"; } - startup_time = ceph::mono_clock::now(); + ceph_assert(seastar::this_shard_id() == PRIMARY_CORE); DEBUG("starting store"); uint32_t store_shards_num = co_await store.start(); diff --git a/src/crimson/osd/osd.h b/src/crimson/osd/osd.h index 01b31295bcc..ebbaf1f6f0c 100644 --- a/src/crimson/osd/osd.h +++ b/src/crimson/osd/osd.h @@ -91,8 +91,6 @@ class OSD final : public crimson::net::Dispatcher, //< since when there is no more pending pg creates from mon epoch_t last_pg_create_epoch = 0; - ceph::mono_time startup_time; - seastar::shared_mutex handle_osd_map_lock; OSDSuperblock superblock;