activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1032140 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala
Date Sat, 06 Nov 2010 20:55:22 GMT
Author: chirino
Date: Sat Nov  6 20:55:21 2010
New Revision: 1032140

URL: http://svn.apache.org/viewvc?rev=1032140&view=rev
Log:
Don't hit the store unless the message is persistent.

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

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala?rev=1032140&r1=1032139&r2=1032140&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Router.scala
Sat Nov  6 20:55:21 2010
@@ -422,7 +422,7 @@ case class DeliveryProducerRoute(val rou
         // only deliver to matching consumers
         if( target.consumer.matches(delivery) ) {
 
-          if( delivery.storeKey == -1L && target.consumer.is_persistent ) {
+          if( delivery.storeKey == -1L && target.consumer.is_persistent &&
delivery.message.persistent ) {
             if( delivery.uow==null ) {
               delivery.uow = router.host.store.createStoreUOW
             } else {



Mime
View raw message