From d98b61bba2f5b64837ac9f55afab42e52d6bc904 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 11 Mar 2014 10:17:57 +0100 Subject: [PATCH] Remove unnecessary sort in GetClusterStatus(). Fixes #5664 --- components/cluster/clusterlistener.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/cluster/clusterlistener.cpp b/components/cluster/clusterlistener.cpp index 2914966c4..29a8b3a99 100644 --- a/components/cluster/clusterlistener.cpp +++ b/components/cluster/clusterlistener.cpp @@ -1615,9 +1615,6 @@ std::pair ClusterListener::GetClusterStatus(vo connected_endpoints->Add(endpoint->GetName()); } - std::sort(not_connected_endpoints->Begin(), not_connected_endpoints->End()); - std::sort(connected_endpoints->Begin(), connected_endpoints->End()); - status->Set("num_endpoints", count_endpoints); status->Set("num_conn_endpoints", connected_endpoints->GetLength()); status->Set("num_not_conn_endpoints", not_connected_endpoints->GetLength());