You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2011/09/07 21:18:32 UTC

svn commit: r1166320 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala

Author: chirino
Date: Wed Sep  7 19:18:32 2011
New Revision: 1166320

URL: http://svn.apache.org/viewvc?rev=1166320&view=rev
Log:
If the destination path is empty then it means that we are just re-connecting to an existing durable subscription.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala?rev=1166320&r1=1166319&r2=1166320&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala Wed Sep  7 19:18:32 2011
@@ -602,7 +602,7 @@ class LocalRouter(val virtual_host:Virtu
           val queue = durable_subscriptions_by_id.get( key ) match {
             case Some(queue) =>
               // We may need to update the bindings...
-              if( queue.destination_dto != destination) {
+              if( !destination.path.isEmpty && queue.destination_dto != destination) {
 
                 val binding = BindingFactory.create(destination)
                 if( queue.tune_persistent && queue.store_id == -1 ) {