From c1ea1ae53fabf8600a224a001d86dbf4507cc522 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 28 Nov 2020 21:35:10 +0800 Subject: [PATCH] mon/ConfigKeyService: drop ConfigKeyService::get_name() the only caller of this function is prefix(), so hardcode the service name there instead. Signed-off-by: Kefu Chai --- src/mon/ConfigKeyService.cc | 2 +- src/mon/ConfigKeyService.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mon/ConfigKeyService.cc b/src/mon/ConfigKeyService.cc index 3e713833edf96..be3f6bd16c7cd 100644 --- a/src/mon/ConfigKeyService.cc +++ b/src/mon/ConfigKeyService.cc @@ -62,7 +62,7 @@ static ostream& _prefix(std::ostream *_dout, const Monitor &mon, const ConfigKeyService *service) { return *_dout << "mon." << mon.name << "@" << mon.rank - << "(" << mon.get_state_name() << ")." << service->get_name(); + << "(" << mon.get_state_name() << ").config_key"; } const string CONFIG_PREFIX = "mon_config_key"; diff --git a/src/mon/ConfigKeyService.h b/src/mon/ConfigKeyService.h index 412ae424f0dc8..8205ebaf1ec09 100644 --- a/src/mon/ConfigKeyService.h +++ b/src/mon/ConfigKeyService.h @@ -38,9 +38,6 @@ public: std::stringstream& ss); void do_osd_new(const uuid_d& uuid, const std::string& dmcrypt_key); - std::string get_name() const { - return "config_key"; - } void get_store_prefixes(std::set& s) const; private: -- 2.39.5