diff options
author | Gordon Sim <gsim@apache.org> | 2009-01-05 20:54:57 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-01-05 20:54:57 +0000 |
commit | f4d6c74b083921aae2b8c855b1d8b467ac0f0bb6 (patch) | |
tree | 45885731ef547e3b20c4d36e7b080d4d63e56627 /qpid/cpp/src | |
parent | 14a032e343cf5875f4e3978191999d08dc0a5195 (diff) | |
download | qpid-python-f4d6c74b083921aae2b8c855b1d8b467ac0f0bb6.tar.gz |
Sorry! Carelessly committed more than I wanted to. Reverting part of my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@731717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r-- | qpid/cpp/src/qpid/broker/DirectExchange.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/qpid/cpp/src/qpid/broker/DirectExchange.cpp b/qpid/cpp/src/qpid/broker/DirectExchange.cpp index d1d9ad07e4..2eb488de67 100644 --- a/qpid/cpp/src/qpid/broker/DirectExchange.cpp +++ b/qpid/cpp/src/qpid/broker/DirectExchange.cpp @@ -33,7 +33,6 @@ namespace const std::string qpidFedOp("qpid.fed.op"); const std::string qpidFedTags("qpid.fed.tags"); const std::string qpidFedOrigin("qpid.fed.origin"); -const std::string qpidExclusiveBinding("qpid.exclusive-binding"); const std::string fedOpBind("B"); const std::string fedOpUnbind("U"); @@ -57,25 +56,15 @@ DirectExchange::DirectExchange(const string& _name, bool _durable, bool DirectExchange::bind(Queue::shared_ptr queue, const string& routingKey, const FieldTable* args) { - string fedOp(fedOpBind); - string fedTags; - string fedOrigin; - bool exclusiveBinding = false; - if (args) { - fedOp = args->getAsString(qpidFedOp); - fedTags = args->getAsString(qpidFedTags); - fedOrigin = args->getAsString(qpidFedOrigin); - exclusiveBinding = args->get(qpidExclusiveBinding); - } - + string fedOp(args ? args->getAsString(qpidFedOp) : fedOpBind); + string fedTags(args ? args->getAsString(qpidFedTags) : ""); + string fedOrigin(args ? args->getAsString(qpidFedOrigin) : ""); bool propagate = false; if (args == 0 || fedOp.empty() || fedOp == fedOpBind) { Mutex::ScopedLock l(lock); Binding::shared_ptr b(new Binding(routingKey, queue, this, FieldTable(), fedOrigin)); BoundKey& bk = bindings[routingKey]; - if (exclusiveBinding) bk.queues.clear(); - if (bk.queues.add_unless(b, MatchQueue(queue))) { propagate = bk.fedBinding.addOrigin(fedOrigin); if (mgmtExchange != 0) { |