summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2012-10-24 14:33:16 +0000
committerAlan Conway <aconway@apache.org>2012-10-24 14:33:16 +0000
commita5d0e8d258023fa09dd727c48cb6c13974f8d093 (patch)
tree57db314a31ab6a0c777b2a4c9f6f34d9b0267fba /qpid/cpp/src
parenta8ff2bf3a270245937feff06731c2c95c853bdd5 (diff)
downloadqpid-python-a5d0e8d258023fa09dd727c48cb6c13974f8d093.tar.gz
Bug-869420 - QPID-4393: BrokerReplicator should call queue->bind, not exchange->bind
In BrokerReplicator, there are a few places that it calls exchange->bind(). We're seeing some incorrect behavior during failover testing (e.g. an exchange shows that it has 5 bindings when there is really only 1) and we think we've narrowed it down to this. Instead of calling exchange->bind(), it should call queue->bind(). If you look at qpid::broker::Broker::createObject(), you'll see that this method calls queue->bind() to bind a queue to an exchange. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1401710 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/ha/BrokerReplicator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/ha/BrokerReplicator.cpp b/qpid/cpp/src/qpid/ha/BrokerReplicator.cpp
index beeaa318cc..f451f7c420 100644
--- a/qpid/cpp/src/qpid/ha/BrokerReplicator.cpp
+++ b/qpid/cpp/src/qpid/ha/BrokerReplicator.cpp
@@ -628,7 +628,7 @@ void BrokerReplicator::doResponseBind(Variant::Map& values) {
<< " key:" << key);
framing::FieldTable args;
qpid::amqp_0_10::translate(asMapVoid(values[ARGUMENTS]), args);
- exchange->bind(queue, key, &args);
+ queue->bind(exchange, key, args);
}
}