activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1166320 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/LocalRouter.scala
Date Wed, 07 Sep 2011 19:18:32 GMT
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 ) {



Mime
View raw message