]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/Monitor.h: add override to virtual functions
authorMichal Jarzabek <stiopa@gmail.com>
Sun, 31 Jul 2016 10:10:17 +0000 (11:10 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Mon, 19 Sep 2016 21:12:51 +0000 (22:12 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/mon/Monitor.h

index ae1dd84bf801b49e4ed337ac687eba831c99c1e9..67b4734b43e7c1aea799f087064dc662c11ecd3e 100644 (file)
@@ -873,7 +873,7 @@ public:
   //ms_dispatch handles a lot of logic and we want to reuse it
   //on forwarded messages, so we create a non-locking version for this class
   void _ms_dispatch(Message *m);
-  bool ms_dispatch(Message *m) {
+  bool ms_dispatch(Message *m) override {
     lock.Lock();
     _ms_dispatch(m);
     lock.Unlock();
@@ -886,9 +886,9 @@ public:
   bool ms_verify_authorizer(Connection *con, int peer_type,
                            int protocol, bufferlist& authorizer_data, bufferlist& authorizer_reply,
                            bool& isvalid, CryptoKey& session_key);
-  bool ms_handle_reset(Connection *con);
-  void ms_handle_remote_reset(Connection *con) {}
-  bool ms_handle_refused(Connection *con);
+  bool ms_handle_reset(Connection *con) override;
+  void ms_handle_remote_reset(Connection *con) override {}
+  bool ms_handle_refused(Connection *con) override;
 
   int write_default_keyring(bufferlist& bl);
   void extract_save_mon_key(KeyRing& keyring);
@@ -915,9 +915,9 @@ public:
   static int check_features(MonitorDBStore *store);
 
   // config observer
-  virtual const char** get_tracked_conf_keys() const;
-  virtual void handle_conf_change(const struct md_config_t *conf,
-                                  const std::set<std::string> &changed);
+  const char** get_tracked_conf_keys() const override;
+  void handle_conf_change(const struct md_config_t *conf,
+                          const std::set<std::string> &changed) override;
 
   void update_log_clients();
   int sanitize_options();