mirror of https://github.com/Icinga/icinga2.git
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()))
|
||||
continue;
|
||||
|
||||
{
|
||||
ObjectLock olock(tp);
|
||||
tp->PurgeSegments(now - 3600);
|
||||
}
|
||||
|
||||
if (tp->m_ValidEnd < now + 3 * 3600)
|
||||
tp->UpdateRegion(tp->m_ValidEnd, tp->m_ValidEnd + 24 * 3600);
|
||||
|
|
Loading…
Reference in New Issue