]> granicus.if.org Git - icinga2/commit
Optimize two ObjectLocks into one in Notification::BeginExecuteNotification method
authorConrad Clement <cclement@printeron.com>
Wed, 20 Jul 2016 18:30:05 +0000 (14:30 -0400)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 2 Aug 2016 16:36:29 +0000 (18:36 +0200)
commit3f0b6ec003284de42320769f9d6268de3eeeba48
treede845d7f176f15730139028f0ac84d5ff65a4c77
parent1ff6939f909afcd7089da73de4d169ddf4148e1c
Optimize two ObjectLocks into one in Notification::BeginExecuteNotification method

object is locked twice to update values of
NotificationNumber, LastNotification and LastProblemNotification.
LastNotificaiton is updated inside each ObjectLock
merge two ObjectLocks into one and remove duplicate update

fixes #12188

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
lib/icinga/notification.cpp