From: Michael Friedrich Date: Wed, 8 Apr 2015 15:06:53 +0000 (+0200) Subject: Don't update scheduleddowntime table w/ trigger_time column when only adding a downtime X-Git-Tag: v2.3.4~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7a84ff8ba011d168922334a3ad5c3b0c86a25b4;p=icinga2 Don't update scheduleddowntime table w/ trigger_time column when only adding a downtime fixes #9014 --- diff --git a/lib/db_ido/dbevents.cpp b/lib/db_ido/dbevents.cpp index 4248d0bbf..1c0f59e14 100644 --- a/lib/db_ido/dbevents.cpp +++ b/lib/db_ido/dbevents.cpp @@ -528,11 +528,8 @@ void DbEvents::AddDowntimeByType(const Checkable::Ptr& checkable, const Downtime fields1->Set("duration", downtime->GetDuration()); fields1->Set("scheduled_start_time", DbValue::FromTimestamp(downtime->GetStartTime())); fields1->Set("scheduled_end_time", DbValue::FromTimestamp(downtime->GetEndTime())); - fields1->Set("was_started", Empty); - fields1->Set("actual_start_time", Empty); - fields1->Set("actual_start_time_usec", Empty); - fields1->Set("is_in_effect", Empty); - fields1->Set("trigger_time", DbValue::FromTimestamp(downtime->GetTriggerTime())); + fields1->Set("was_started", 0); + fields1->Set("is_in_effect", 0); fields1->Set("instance_id", 0); /* DbConnection class fills in real ID */ String node = IcingaApplication::GetInstance()->GetNodeName();