mirror of https://github.com/Icinga/icinga2.git
Merge pull request #8014 from Icinga/bugfix/icinga-db-ack-expire-8012
Icinga DB: record ack expiries
This commit is contained in:
commit
7395465089
|
@ -143,15 +143,7 @@ void Checkable::ClearAcknowledgement(const String& removedBy, double changeTime,
|
|||
{
|
||||
ObjectLock oLock (this);
|
||||
|
||||
bool wasAcked;
|
||||
|
||||
if (GetAcknowledgementRaw() == AcknowledgementNone) {
|
||||
wasAcked = false;
|
||||
} else {
|
||||
double expiry = GetAcknowledgementExpiry();
|
||||
|
||||
wasAcked = expiry == 0 || expiry >= Utility::GetTime();
|
||||
}
|
||||
bool wasAcked = GetAcknowledgementRaw() != AcknowledgementNone;
|
||||
|
||||
SetAcknowledgementRaw(AcknowledgementNone);
|
||||
SetAcknowledgementExpiry(0);
|
||||
|
|
Loading…
Reference in New Issue