summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/FailoverExchange.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-02-02 15:47:41 +0000
committerAlan Conway <aconway@apache.org>2010-02-02 15:47:41 +0000
commit3a75d755f87a495ae02bdf69af6723c62584b190 (patch)
treee743dad1695c753465aefb55c12d0a162976968d /cpp/src/qpid/cluster/FailoverExchange.cpp
parent21e39f778986321e7477f26b24f949fb798b58b4 (diff)
downloadqpid-python-3a75d755f87a495ae02bdf69af6723c62584b190.tar.gz
Cluster: fix update of failover exchange.
During update the cluster was sending an extra update to the failover exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@905676 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/FailoverExchange.cpp')
-rw-r--r--cpp/src/qpid/cluster/FailoverExchange.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/FailoverExchange.cpp b/cpp/src/qpid/cluster/FailoverExchange.cpp
index e01c41494b..24518dbe9f 100644
--- a/cpp/src/qpid/cluster/FailoverExchange.cpp
+++ b/cpp/src/qpid/cluster/FailoverExchange.cpp
@@ -45,9 +45,13 @@ FailoverExchange::FailoverExchange(management::Manageable* parent) : Exchange(TY
mgmtExchange->set_type(TYPE_NAME);
}
-
void FailoverExchange::setUrls(const vector<Url>& u) {
Lock l(lock);
+ urls = u;
+}
+
+void FailoverExchange::updateUrls(const vector<Url>& u) {
+ Lock l(lock);
urls=u;
if (urls.empty()) return;
std::for_each(queues.begin(), queues.end(),