]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: add locked assertion 23294/head
authorNoah Watkins <noahwatkins@gmail.com>
Tue, 7 Aug 2018 17:13:20 +0000 (10:13 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Tue, 7 Aug 2018 17:13:20 +0000 (10:13 -0700)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
src/mgr/DaemonServer.cc

index 4ec42dc6942094b5ef05c565950c502dc3d49b78..ab20edb1c9192b735de8dde3800b59546a554f31 100644 (file)
@@ -365,6 +365,8 @@ void DaemonServer::tick()
 // fire after all modules have had a chance to set their health checks.
 void DaemonServer::schedule_tick_locked(double delay_sec)
 {
+  assert(lock.is_locked_by_me());
+
   if (tick_event) {
     timer.cancel_event(tick_event);
     tick_event = nullptr;