Merge pull request #9020 from Icinga/feature/icingaeb-schema-version

Icinga DB: publish Redis schema version via XADD icinga:schema
This commit is contained in:
Alexander Aleksandrovič Klimov 2021-10-25 13:21:37 +02:00 committed by GitHub
commit f5f8ccb1f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ void IcingaDB::ConfigStaticInitialize()
void IcingaDB::UpdateAllConfigObjects()
{
m_Rcon->Sync();
m_Rcon->FireAndForgetQuery({"XADD", "icinga:schema", "MAXLEN", "1", "*", "version", "1"}, Prio::Heartbeat);
Log(LogInformation, "IcingaDB") << "Starting initial config/status dump";
double startTime = Utility::GetTime();