qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r731717 - /qpid/trunk/qpid/cpp/src/qpid/broker/DirectExchange.cpp
Date Mon, 05 Jan 2009 20:58:12 GMT
Author: gsim
Date: Mon Jan  5 12:58:12 2009
New Revision: 731717

URL: http://svn.apache.org/viewvc?rev=731717&view=rev
Log:
Sorry! Carelessly committed more than I wanted to. Reverting part of my previous commit.


Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/DirectExchange.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/DirectExchange.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/DirectExchange.cpp?rev=731717&r1=731716&r2=731717&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/DirectExchange.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/DirectExchange.cpp Mon Jan  5 12:58:12 2009
@@ -33,7 +33,6 @@
 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 @@
 
 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) {



Mime
View raw message