]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/ConfigKeyService: drop ConfigKeyService::dispatch() 38324/head
authorKefu Chai <kchai@redhat.com>
Sat, 28 Nov 2020 13:41:01 +0000 (21:41 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 15:15:40 +0000 (23:15 +0800)
this method is basically an alias of
ConfigKeyService::service_dispatch(), so get rid of it.

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

index be3f6bd16c7cd1a71080225f9e2b586c4627fc81..a75f0dcbeb822d246ddf4d7ebf06135dd0c87d4f 100644 (file)
@@ -72,10 +72,6 @@ ConfigKeyService::ConfigKeyService(Monitor &m, Paxos &p)
     paxos(p)
 {}
 
-bool ConfigKeyService::dispatch(MonOpRequestRef op) {
-  return service_dispatch(op);
-}
-
 bool ConfigKeyService::in_quorum() const
 {
   return (mon.is_leader() || mon.is_peon());
@@ -215,7 +211,7 @@ void ConfigKeyService::store_delete_prefix(
   }
 }
 
-bool ConfigKeyService::service_dispatch(MonOpRequestRef op)
+bool ConfigKeyService::dispatch(MonOpRequestRef op)
 {
   Message *m = op->get_req();
   ceph_assert(m != NULL);
index 8205ebaf1ec0967416cc8aa04a92311eb0650e03..71ee59bd858e96475221c1230a952a842e7f1f27 100644 (file)
@@ -28,7 +28,6 @@ public:
   ~ConfigKeyService() {}
 
   bool dispatch(MonOpRequestRef op);
-  bool service_dispatch(MonOpRequestRef op);
 
   int validate_osd_destroy(const int32_t id, const uuid_d& uuid);
   void do_osd_destroy(int32_t id, uuid_d& uuid);