mgr: add override in mgr subsystem

Fixes: http://tracker.ceph.com/issues/18922

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
This commit is contained in:
liuchang0812 2017-02-15 21:39:38 +08:00
parent 05f1a1987e
commit 491d653632
3 changed files with 3 additions and 3 deletions

View 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) {

View File

@ -399,7 +399,7 @@ public:
ServeThread(MgrPyModule *mod_)
: mod(mod_) {}
void *entry()
void *entry() override
{
PyGILState_STATE gstate;
gstate = PyGILState_Ensure();

View 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();