activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1480417 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Topic.scala
Date Wed, 08 May 2013 19:35:05 GMT
Author: chirino
Date: Wed May  8 19:35:05 2013
New Revision: 1480417

URL: http://svn.apache.org/r1480417
Log:
Fixes APLO-319: Don't auto delete Topics if it's holding retained messages

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=1480417&r1=1480416&r2=1480417&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
Wed May  8 19:35:05 2013
@@ -393,7 +393,7 @@ class Topic(val router:LocalRouter, val 
   }
 
   def check_idle {
-    if (producers.isEmpty && consumers.isEmpty && topic_queue==null) {
+    if (producers.isEmpty && consumers.isEmpty && topic_queue==null &&
retained_message==null) {
       if (idled_at==0) {
         val previously_idle_at = now
         idled_at = previously_idle_at



Mime
View raw message