Fix removal of expired ScheduledDowntimes.

Fixes #6321
This commit is contained in:
Michael Friedrich 2014-05-27 09:44:32 +02:00
parent 7cd0395fa4
commit d3171dc8b9
1 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,10 @@ void Checkable::RemoveExpiredDowntimes(void)
}
BOOST_FOREACH(const String& id, expiredDowntimes) {
/* override config owner to clear expired downtimes once */
Downtime::Ptr downtime = GetDowntimeByID(id);
downtime->SetConfigOwner(Empty);
RemoveDowntime(id, false);
}
}