Fix DB IDO events for next_check, etc. updates

refs #10817
This commit is contained in:
Michael Friedrich 2015-12-10 15:24:28 +01:00 committed by Gunnar Beutner
parent 36c170d5dc
commit e1ac078d4b
1 changed files with 5 additions and 5 deletions

View File

@ -101,7 +101,7 @@ void DbEvents::NextCheckChangedHandler(const Checkable::Ptr& checkable)
else
query1.Table = "hoststatus";
query1.Type = DbQueryInsert | DbQueryUpdate;
query1.Type = DbQueryUpdate;
query1.Category = DbCatState;
query1.StatusUpdate = true;
query1.Object = DbObject::GetOrCreateByObject(checkable);
@ -132,7 +132,7 @@ void DbEvents::FlappingChangedHandler(const Checkable::Ptr& checkable)
else
query1.Table = "hoststatus";
query1.Type = DbQueryInsert | DbQueryUpdate;
query1.Type = DbQueryUpdate;
query1.Category = DbCatState;
query1.StatusUpdate = true;
query1.Object = DbObject::GetOrCreateByObject(checkable);
@ -170,7 +170,7 @@ void DbEvents::LastNotificationChangedHandler(const Notification::Ptr& notificat
else
query1.Table = "hoststatus";
query1.Type = DbQueryInsert | DbQueryUpdate;
query1.Type = DbQueryUpdate;
query1.Category = DbCatState;
query1.StatusUpdate = true;
query1.Object = DbObject::GetOrCreateByObject(checkable);
@ -217,7 +217,7 @@ void DbEvents::ReachabilityChangedHandler(const Checkable::Ptr& checkable, const
else
query1.Table = "hoststatus";
query1.Type = DbQueryInsert | DbQueryUpdate;
query1.Type = DbQueryUpdate;
query1.Category = DbCatState;
query1.StatusUpdate = true;
query1.Object = DbObject::GetOrCreateByObject(child);
@ -277,7 +277,7 @@ void DbEvents::EnableChangedHandlerInternal(const Checkable::Ptr& checkable, con
else
query1.Table = "hoststatus";
query1.Type = DbQueryInsert | DbQueryUpdate;
query1.Type = DbQueryUpdate;
query1.Category = DbCatState;
query1.StatusUpdate = true;
query1.Object = DbObject::GetOrCreateByObject(checkable);