]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor: add missing shutdown of OpTracker
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Fri, 23 Feb 2018 08:37:11 +0000 (09:37 +0100)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Mon, 26 Feb 2018 14:27:43 +0000 (15:27 +0100)
Now that it has its own processing thread, it must be shut down
explicitly or it'll sigsegv randomly.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
src/mon/Monitor.cc

index 4a93abbe6f6b97ddafb1e559a6e74921e7a56893..588c2ee0963206989c02cb5f4fadabd9c0ca6f0e 100644 (file)
@@ -213,6 +213,8 @@ Monitor::Monitor(CephContext* cct_, string nm, MonitorDBStore *s,
 
 Monitor::~Monitor()
 {
+  op_tracker.on_shutdown();
+
   for (vector<PaxosService*>::iterator p = paxos_service.begin(); p != paxos_service.end(); ++p)
     delete *p;
   delete config_key_service;