]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: remove OSD::startup_time
authorKefu Chai <k.chai@proxmox.com>
Mon, 8 Jun 2026 08:54:47 +0000 (16:54 +0800)
committerKefu Chai <k.chai@proxmox.com>
Tue, 9 Jun 2026 07:30:29 +0000 (15:30 +0800)
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 <k.chai@proxmox.com>
src/crimson/osd/osd.cc
src/crimson/osd/osd.h

index 1404a85bfc7bb19cdb276cf90e9d17501700f618..c7288bef6126004b60ff7792ebc036abbdd752e2 100644 (file)
@@ -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();
index 01b31295bcc57ef8ea6f3a6f23f40b59c29aeb73..ebbaf1f6f0c4d3bdcc99f385cfe6cdc54080f879 100644 (file)
@@ -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;