activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r486382 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryMessageStore.java
Date Tue, 12 Dec 2006 22:46:52 GMT
Author: gnodet
Date: Tue Dec 12 14:46:51 2006
New Revision: 486382

URL: http://svn.apache.org/viewvc?view=rev&rev=486382
Log:
Fix exception when removing message from MemoryMessageStore

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryMessageStore.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryMessageStore.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryMessageStore.java?view=diff&rev=486382&r1=486381&r2=486382
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryMessageStore.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryMessageStore.java
Tue Dec 12 14:46:51 2006
@@ -77,7 +77,7 @@
     public void removeMessage(MessageId msgId) throws IOException{
         synchronized(messageTable){
             messageTable.remove(msgId);
-            if(lastBatchId!=null&lastBatchId.equals(msgId)){
+            if(lastBatchId!=null && lastBatchId.equals(msgId)){
                 lastBatchId=null;
             }
         }



Mime
View raw message