activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1211857 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
Date Thu, 08 Dec 2011 12:37:34 GMT
Author: chirino
Date: Thu Dec  8 12:37:34 2011
New Revision: 1211857

URL: http://svn.apache.org/viewvc?rev=1211857&view=rev
Log:
A little follow on work to APLO-96, when a freshly enqueued message is marked as prefetched
also move to it the consumer memory space.

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

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala?rev=1211857&r1=1211856&r2=1211857&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
Thu Dec  8 12:37:34 2011
@@ -556,6 +556,7 @@ class Queue(val router: LocalRouter, val
           // Enqueued message prefeteched.
           tail_prefetch -= entry.size
           entry.prefetch_flags = PREFTCH_LOAD_FLAG
+          entry.load(consumer_swapped_in)
         } else {
 //          val prev = entry.getPrevious
 //          if( (prev.as_loaded!=null && prev.as_loaded.swapping_out) || (prev.as_swapped!=null
&& !prev.as_swapped.swapping_in) ) {



Mime
View raw message