]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Beacon: wake up the thread in shutdown() 60325/head
authorMax Kellermann <max.kellermann@ionos.com>
Fri, 11 Oct 2024 20:06:42 +0000 (22:06 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Tue, 29 Oct 2024 20:34:19 +0000 (21:34 +0100)
This eliminates the `wait_for()` delay and speeds up MDS shutdown.

Fixes: https://tracker.ceph.com/issues/68759
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/mds/Beacon.cc

index 642d3428a27dfcc1e2541bdaed1fe23caf3b4dbb..392aa3dcd40a9e5047e795928ab6da34384ae8ac 100644 (file)
@@ -61,6 +61,7 @@ void Beacon::shutdown()
   std::unique_lock<std::mutex> lock(mutex);
   if (!finished) {
     finished = true;
+    cvar.notify_all();
     lock.unlock();
     if (sender.joinable())
       sender.join();