mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-08 06:14:28 +02:00
cluster: Fix deadlock.
This commit is contained in:
parent
fa52d0ab58
commit
20ac2825e9
@ -1354,6 +1354,7 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
|||||||
|
|
||||||
localConfig->Remove(hash);
|
localConfig->Remove(hash);
|
||||||
}
|
}
|
||||||
|
olock.Unlock();
|
||||||
|
|
||||||
ObjectLock olock2(localConfig);
|
ObjectLock olock2(localConfig);
|
||||||
BOOST_FOREACH(boost::tie(key, boost::tuples::ignore), localConfig) {
|
BOOST_FOREACH(boost::tie(key, boost::tuples::ignore), localConfig) {
|
||||||
@ -1362,6 +1363,7 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction
|
|||||||
(void) unlink(path.CStr());
|
(void) unlink(path.CStr());
|
||||||
configChange = true;
|
configChange = true;
|
||||||
}
|
}
|
||||||
|
olock2.Unlock();
|
||||||
|
|
||||||
if (configChange) {
|
if (configChange) {
|
||||||
Log(LogInformation, "cluster", "Restarting after configuration change.");
|
Log(LogInformation, "cluster", "Restarting after configuration change.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user