Merge PR #60325 into main

* refs/pull/60325/head:
	mds/Beacon: wake up the thread in shutdown()

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
This commit is contained in:
Patrick Donnelly 2024-11-12 22:13:46 -05:00
commit ad153a8d19
No known key found for this signature in database
GPG Key ID: FA47FD0B0367D313
1 changed files with 1 additions and 0 deletions

View 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();