[icinga-checkins] icinga.org: icinga2/master: Bugfix for removing expired downtimes.

git at icinga.org git at icinga.org
Wed Jun 19 14:28:54 CEST 2013


Module: icinga2
Branch: master
Commit: 709e8c925efd525885a28d3c4b52fa6b366e166e
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=709e8c925efd525885a28d3c4b52fa6b366e166e

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Jun 19 14:28:46 2013 +0200

Bugfix for removing expired downtimes.

---

 lib/icinga/service-downtime.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/icinga/service-downtime.cpp b/lib/icinga/service-downtime.cpp
index 5720e35..43345fc 100644
--- a/lib/icinga/service-downtime.cpp
+++ b/lib/icinga/service-downtime.cpp
@@ -342,7 +342,10 @@ void Service::RemoveExpiredDowntimes(void)
 			downtimes->Remove(id);
 		}
 
-		Touch("downtimes");
+		{
+			ObjectLock olock(this);
+			Touch("downtimes");
+		}
 	}
 }
 





More information about the icinga-checkins mailing list