From 4bb9beda19659825b709024a1c1fe298632252ec Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 8 Nov 2015 21:22:06 +0100 Subject: [PATCH] Don't send cluster config messages for objects with version 0 refs #9927 --- lib/remote/apilistener-configsync.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp index 4d758986d..cdde40b02 100644 --- a/lib/remote/apilistener-configsync.cpp +++ b/lib/remote/apilistener-configsync.cpp @@ -278,6 +278,9 @@ void ApiListener::UpdateConfigObject(const ConfigObject::Ptr& object, const Mess } } + if (object->GetPackage() != "_api" && object->GetVersion() == 0) + return; + Dictionary::Ptr message = new Dictionary(); message->Set("jsonrpc", "2.0"); message->Set("method", "config::UpdateObject");