mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
IcingaDB#SendRemovedComment(): ignore ack comments like #SendAddedComment()
Icinga DB doesn't expect comment history for ack comments. Before: 1. Acked checkable recovers 2. Icinga clears ack comments w/o setting removal time 3. Icinga DB gets neither removal time, nor expire time 4. Icinga DB falls back to NULL and violates NOT NULL constraint
This commit is contained in:
parent
f67a5532dc
commit
8d3a847998
@ -2022,7 +2022,7 @@ void IcingaDB::SendAddedComment(const Comment::Ptr& comment)
|
|||||||
|
|
||||||
void IcingaDB::SendRemovedComment(const Comment::Ptr& comment)
|
void IcingaDB::SendRemovedComment(const Comment::Ptr& comment)
|
||||||
{
|
{
|
||||||
if (!GetActive()) {
|
if (comment->GetEntryType() != CommentUser || !GetActive()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user