From 0182d793acf17ce62fae2f2f0ebe24196168d33e Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 1 Oct 2021 15:58:57 +0200 Subject: [PATCH] Icinga DB: publish Redis schema version via XADD icinga:schema ... to be able both to subscribe for its change and to just fetch it. --- lib/icingadb/icingadb-objects.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/icingadb/icingadb-objects.cpp b/lib/icingadb/icingadb-objects.cpp index c8d7477c2..8f07fe311 100644 --- a/lib/icingadb/icingadb-objects.cpp +++ b/lib/icingadb/icingadb-objects.cpp @@ -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();