activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1379941 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Topic.scala
Date Sun, 02 Sep 2012 11:25:36 GMT
Author: chirino
Date: Sun Sep  2 11:25:35 2012
New Revision: 1379941

URL: http://svn.apache.org/viewvc?rev=1379941&view=rev
Log:
Fixes bug where topic we being auto-deleted even when it has a consumer via a queue

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

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Topic.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Topic.scala?rev=1379941&r1=1379940&r2=1379941&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Topic.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Topic.scala
Sun Sep  2 11:25:35 2012
@@ -360,7 +360,7 @@ class Topic(val router:LocalRouter, val 
   }
 
   def check_idle {
-    if (producers.isEmpty && consumers.isEmpty) {
+    if (producers.isEmpty && consumers.isEmpty && topic_queue==null) {
       if (idled_at==0) {
         val previously_idle_at = now
         idled_at = previously_idle_at



Mime
View raw message