]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr: add override in mgr subsystem
authorliuchang0812 <liuchang0812@gmail.com>
Wed, 15 Feb 2017 13:39:38 +0000 (21:39 +0800)
committerliuchang0812 <liuchang0812@gmail.com>
Wed, 15 Feb 2017 13:39:38 +0000 (21:39 +0800)
Fixes: http://tracker.ceph.com/issues/18922
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
src/mgr/Mgr.cc
src/mgr/PyModules.cc
src/mgr/PyState.cc

index 8faf6bdf6b17115e162ae52216fce62a1cd374ae..090e0aa2f1937a87affaddde5edc8093d9317756 100644 (file)
@@ -77,7 +77,7 @@ public:
   MetadataUpdate(DaemonStateIndex &daemon_state_, const DaemonKey &key_)
     : daemon_state(daemon_state_), key(key_) {}
 
-  void finish(int r)
+  void finish(int r) override
   {
     daemon_state.clear_updating(key);
     if (r == 0) {
index aa68260ce30ebdb4fe289a84437a7f2a72656313..a4ddcda38c199e5b4a47eeed4c24f3e8f513d363 100644 (file)
@@ -399,7 +399,7 @@ public:
   ServeThread(MgrPyModule *mod_)
     : mod(mod_) {}
 
-  void *entry()
+  void *entry() override
   {
     PyGILState_STATE gstate;
     gstate = PyGILState_Ensure();
index 6027fc7ddf170d2dd702f2c92c25d10bd3a58f80..213563667c89e806eaf9395f3bcf821e32363c4b 100644 (file)
@@ -48,7 +48,7 @@ public:
     Py_DECREF(python_completion);
   }
 
-  void finish(int r)
+  void finish(int r) override
   {
     PyGILState_STATE gstate;
     gstate = PyGILState_Ensure();