diff options
| author | Gordon Sim <gsim@apache.org> | 2011-08-09 20:19:54 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2011-08-09 20:19:54 +0000 |
| commit | 430da06964d2c5af0288b5b69274746423081870 (patch) | |
| tree | 5e840ccf56acc5fdc52a520d6959610e2855d575 /cpp/src/qpid/cluster/UpdateClient.cpp | |
| parent | a230a88666d812dd8118d81f99c4e1d788f4f2b0 (diff) | |
| download | qpid-python-430da06964d2c5af0288b5b69274746423081870.tar.gz | |
QPID-3363: prevent bind/unbind on default exchange
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1155545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/UpdateClient.cpp')
| -rw-r--r-- | cpp/src/qpid/cluster/UpdateClient.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/UpdateClient.cpp b/cpp/src/qpid/cluster/UpdateClient.cpp index f306517d37..fc104e8ca9 100644 --- a/cpp/src/qpid/cluster/UpdateClient.cpp +++ b/cpp/src/qpid/cluster/UpdateClient.cpp @@ -402,7 +402,11 @@ void UpdateClient::updateNonExclusiveQueue(const boost::shared_ptr<broker::Queue } void UpdateClient::updateBinding(client::AsyncSession& s, const std::string& queue, const QueueBinding& binding) { - s.exchangeBind(queue, binding.exchange, binding.key, binding.args); + if (binding.exchange.size()) + s.exchangeBind(queue, binding.exchange, binding.key, binding.args); + //else its the default exchange and there is no need to replicate + //the binding, the creation of the queue will have done so + //automatically } void UpdateClient::updateOutputTask(const sys::OutputTask* task) { |
