mirror of https://github.com/ceph/ceph
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:
commit
ad153a8d19
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue