]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
monc: synchronize tick() of MonClient with shutdown() 64756/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 30 Jul 2025 10:13:06 +0000 (12:13 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 30 Jul 2025 10:13:11 +0000 (12:13 +0200)
For RCA please refer to: https://tracker.ceph.com/issues/67244#note-11.

Fixes: https://tracker.ceph.com/issues/67244
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/mon/MonClient.cc

index 5770e6a2b0cf012d51f9a336e3e589a155caf597..249fbf54fd583340f108ac7a554688c53c293806 100644 (file)
@@ -963,6 +963,11 @@ void MonClient::tick()
 {
   ldout(cct, 10) << __func__ << dendl;
 
+  if (stopping) {
+    ldout(cct, 1) << "skipping tick on shutdown" << dendl;
+    return;
+  }
+
   utime_t now = ceph_clock_now();
 
   auto reschedule_tick = make_scope_guard([this] {