mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 20:24:33 +02:00
ido: Fix timeperioddbobject lock.
This commit is contained in:
parent
5ce38cbee6
commit
66d00d25bc
@ -100,6 +100,7 @@ void TimePeriodDbObject::OnConfigUpdate(void)
|
|||||||
Array::Ptr segments = boost::make_shared<Array>();
|
Array::Ptr segments = boost::make_shared<Array>();
|
||||||
LegacyTimePeriod::ProcessTimeRanges(value, &reference, segments);
|
LegacyTimePeriod::ProcessTimeRanges(value, &reference, segments);
|
||||||
|
|
||||||
|
ObjectLock olock(segments);
|
||||||
BOOST_FOREACH(const Value& vsegment, segments) {
|
BOOST_FOREACH(const Value& vsegment, segments) {
|
||||||
Dictionary::Ptr segment = vsegment;
|
Dictionary::Ptr segment = vsegment;
|
||||||
int begin = segment->Get("begin");
|
int begin = segment->Get("begin");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user