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);
|
ObjectLock oLock (this);
|
||||||
|
|
||||||
bool wasAcked;
|
bool wasAcked = GetAcknowledgementRaw() != AcknowledgementNone;
|
||||||
|
|
||||||
if (GetAcknowledgementRaw() == AcknowledgementNone) {
|
|
||||||
wasAcked = false;
|
|
||||||
} else {
|
|
||||||
double expiry = GetAcknowledgementExpiry();
|
|
||||||
|
|
||||||
wasAcked = expiry == 0 || expiry >= Utility::GetTime();
|
|
||||||
}
|
|
||||||
|
|
||||||
SetAcknowledgementRaw(AcknowledgementNone);
|
SetAcknowledgementRaw(AcknowledgementNone);
|
||||||
SetAcknowledgementExpiry(0);
|
SetAcknowledgementExpiry(0);
|
||||||
|
|
Loading…
Reference in New Issue