]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/ConfigKeyService: move private member variable declaration to the end of class
authorKefu Chai <kchai@redhat.com>
Sat, 28 Nov 2020 11:15:34 +0000 (19:15 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 15:15:40 +0000 (23:15 +0800)
to follow https://google.github.io/styleguide/cppguide.html

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

index f40062046a6e43b03254847915b7ea6d35013591..e85753daecb2d030c6250dffdd5db9b3cf8c6d72 100644 (file)
@@ -22,25 +22,6 @@ class Monitor;
 
 class ConfigKeyService : public QuorumService
 {
-  Paxos *paxos;
-
-  int store_get(const std::string &key, ceph::buffer::list &bl);
-  void store_put(const std::string &key, ceph::buffer::list &bl, Context *cb = NULL);
-  void store_delete(MonitorDBStore::TransactionRef t, const std::string &key);
-  void store_delete(const std::string &key, Context *cb = NULL);
-  void store_delete_prefix(
-      MonitorDBStore::TransactionRef t,
-      const std::string &prefix);
-  void store_list(std::stringstream &ss);
-  void store_dump(std::stringstream &ss, const std::string& prefix);
-  bool store_exists(const std::string &key);
-  bool store_has_prefix(const std::string &prefix);
-
-  static const std::string STORE_PREFIX;
-
-protected:
-  void service_shutdown() override { }
-
 public:
   ConfigKeyService(Monitor *m, Paxos *p) :
     QuorumService(m),
@@ -80,6 +61,24 @@ public:
   /**
    * @} // ConfigKeyService_Inherited_h
    */
+protected:
+  void service_shutdown() override { }
+private:
+  Paxos *paxos;
+
+  int store_get(const std::string &key, ceph::buffer::list &bl);
+  void store_put(const std::string &key, ceph::buffer::list &bl, Context *cb = NULL);
+  void store_delete(MonitorDBStore::TransactionRef t, const std::string &key);
+  void store_delete(const std::string &key, Context *cb = NULL);
+  void store_delete_prefix(
+      MonitorDBStore::TransactionRef t,
+      const std::string &prefix);
+  void store_list(std::stringstream &ss);
+  void store_dump(std::stringstream &ss, const std::string& prefix);
+  bool store_exists(const std::string &key);
+  bool store_has_prefix(const std::string &prefix);
+
+  static const std::string STORE_PREFIX;
 };
 
 #endif // CEPH_MON_CONFIG_KEY_SERVICE_H