activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1102632 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
Date Fri, 13 May 2011 09:45:34 GMT
Author: chirino
Date: Fri May 13 09:45:34 2011
New Revision: 1102632

URL: http://svn.apache.org/viewvc?rev=1102632&view=rev
Log:
Don't depend on assert executing the test since it might get elided away.

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=1102632&r1=1102631&r2=1102632&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
Fri May 13 09:45:34 2011
@@ -1080,7 +1080,8 @@ class QueueEntry(val queue:Queue, val se
                     queue.ack_source.merge((acquiredQueueEntry, consumed, tx))
                   }
 
-                  assert(sub.offer(acquiredDelivery), "sub should have accepted, it had reported
not full earlier.")
+                  val accepted = sub.offer(acquiredDelivery)
+                  assert(accepted, "sub should have accepted, it had reported not full earlier.")
                 }
               }
             }



Mime
View raw message