Merge pull request #8593 from Icinga/bugfix/activate-items-assertion

Remove incorrect assertion in ConfigItem::ActivateItems
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-01-19 13:52:16 +01:00 committed by GitHub
commit 3976f256a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 11 deletions

View File

@ -697,17 +697,6 @@ bool ConfigItem::ActivateItems(const std::vector<ConfigItem::Ptr>& newItems, boo
}
}
#ifdef I2_DEBUG
for (const ConfigItem::Ptr& item : newItems) {
ConfigObject::Ptr object = item->m_Object;
if (!object)
continue;
ASSERT(object && object->IsActive());
}
#endif /* I2_DEBUG */
if (!silent)
Log(LogInformation, "ConfigItem", "Activated all objects.");