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 2012/09/02 13:25:36 UTC
svn commit: r1379941 -
/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Topic.scala
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