From 5ce38cbee6b22ea1e20720802767b19d872ed2bf Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 12 Sep 2013 10:22:03 +0200 Subject: [PATCH] cluster: Update endpoints' features for heartbeat messages. --- components/cluster/clustercomponent.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index fbd4dff59..be36ad6b8 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -846,8 +846,10 @@ void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Diction Endpoint::Ptr endpoint = Endpoint::GetByName(identity); - if (endpoint) + if (endpoint) { endpoint->SetSeen(Utility::GetTime()); + endpoint->SetFeatures(params->Get("features")); + } } else if (message->Get("method") == "cluster::CheckResult") { String svc = params->Get("service"); -- 2.40.0