Merge branch '2.4.11' into 2.4

This commit is contained in:
Markus Mäkelä 2020-07-13 15:20:33 +03:00
commit cb0217a776
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -559,8 +559,6 @@ void RoutingWorker::register_zombie(DCB* pDcb)
void RoutingWorker::delete_zombies()
{
Zombies not_ready;
// An algorithm cannot be used, as the final closing of a DCB may cause
// other DCBs to be registered in the zombie queue.
@ -569,17 +567,8 @@ void RoutingWorker::delete_zombies()
DCB* pDcb = m_zombies.back();
m_zombies.pop_back();
if (can_close_dcb(pDcb))
{
dcb_final_close(pDcb);
}
else
{
not_ready.push_back(pDcb);
}
dcb_final_close(pDcb);
}
m_zombies.insert(m_zombies.end(), not_ready.begin(), not_ready.end());
}
bool RoutingWorker::pre_run()