Merge pull request #8626 from Icinga/bugfix/recreate-object-invisible-ido-8584

Ido*sqlConnection#InternalDeactivateObject(): mark object inactive also in memory
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-07-02 16:34:28 +02:00 committed by GitHub
commit b7efbd0bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -829,6 +829,8 @@ void IdoMysqlConnection::InternalDeactivateObject(const DbObject::Ptr& dbobj)
/* Note that we're _NOT_ clearing the db refs via SetReference/SetConfigUpdate/SetStatusUpdate
* because the object is still in the database. */
SetObjectActive(dbobj, false);
}
bool IdoMysqlConnection::FieldToEscapedString(const String& key, const Value& value, Value *result)

View File

@ -643,6 +643,8 @@ void IdoPgsqlConnection::InternalDeactivateObject(const DbObject::Ptr& dbobj)
/* Note that we're _NOT_ clearing the db refs via SetReference/SetConfigUpdate/SetStatusUpdate
* because the object is still in the database. */
SetObjectActive(dbobj, false);
}
bool IdoPgsqlConnection::FieldToEscapedString(const String& key, const Value& value, Value *result)