Skip to content

Commit 0276ab4

Browse files
committed
mds/Beacon: wake up the thread in shutdown()
This eliminates the `wait_for()` delay and speeds up MDS shutdown. Fixes: https://tracker.ceph.com/issues/68759 Signed-off-by: Max Kellermann <[email protected]>
1 parent a3cf842 commit 0276ab4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mds/Beacon.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ void Beacon::shutdown()
6161
std::unique_lock<std::mutex> lock(mutex);
6262
if (!finished) {
6363
finished = true;
64+
cvar.notify_all();
6465
lock.unlock();
6566
if (sender.joinable())
6667
sender.join();

0 commit comments

Comments
 (0)