mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Bug fix: missing lock for TimePeriod::PurgeSegments call.
This commit is contained in:
parent
07421751ad
commit
2a2e2ca4e6
@ -255,7 +255,10 @@ void TimePeriod::UpdateTimerHandler(void)
|
|||||||
if (!ConfigItem::GetObject("TimePeriod", tp->GetName()))
|
if (!ConfigItem::GetObject("TimePeriod", tp->GetName()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
tp->PurgeSegments(now - 3600);
|
{
|
||||||
|
ObjectLock olock(tp);
|
||||||
|
tp->PurgeSegments(now - 3600);
|
||||||
|
}
|
||||||
|
|
||||||
if (tp->m_ValidEnd < now + 3 * 3600)
|
if (tp->m_ValidEnd < now + 3 * 3600)
|
||||||
tp->UpdateRegion(tp->m_ValidEnd, tp->m_ValidEnd + 24 * 3600);
|
tp->UpdateRegion(tp->m_ValidEnd, tp->m_ValidEnd + 24 * 3600);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user