]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/ConfigKeyService: drop ConfigKeyService::get_name()
authorKefu Chai <kchai@redhat.com>
Sat, 28 Nov 2020 13:35:10 +0000 (21:35 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 15:15:40 +0000 (23:15 +0800)
the only caller of this function is prefix(), so hardcode the service
name there instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/ConfigKeyService.cc
src/mon/ConfigKeyService.h

index 3e713833edf9647dce538d2a1e9c877cfa2833d4..be3f6bd16c7cd1a71080225f9e2b586c4627fc81 100644 (file)
@@ -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";
index 412ae424f0dc895a8f6849c0ab9822c9c326a70b..8205ebaf1ec0967416cc8aa04a92311eb0650e03 100644 (file)
@@ -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<std::string>& s) const;
 
 private: