MD: avoid chicken-egg deadlock during shutdowns where one thread waits for work…

MD: avoid chicken-egg deadlock during shutdowns where one thread waits for work to be done ay an already shut-down thread
parent 41805b15
......@@ -2474,6 +2474,10 @@ metad::mdcommunicate(ThreadAssistant& assistant)
eos_static_info("lease: delaying cap-release remote-ino=%lx ino=%lx clientid=%s authid=%s",
md_ino, ino, rsp.lease_().clientid().c_str(), authid.c_str());
std::this_thread::sleep_for(std::chrono::milliseconds(25));
if (assistant.terminationRequested()) {
return;
}
} else {
mdflush.UnLock();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment