activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r603348 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTopicSub.java
Date Tue, 11 Dec 2007 20:19:53 GMT
Author: rajdavies
Date: Tue Dec 11 12:19:46 2007
New Revision: 603348

URL: http://svn.apache.org/viewvc?rev=603348&view=rev
Log:
Added more synchronization

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTopicSub.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTopicSub.java?rev=603348&r1=603347&r2=603348&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTopicSub.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTopicSub.java
Tue Dec 11 12:19:46 2007
@@ -34,7 +34,7 @@
     private Map<MessageId, Message> map = new LinkedHashMap<MessageId, Message>();
     private MessageId lastBatch;
 
-    void addMessage(MessageId id, Message message) {
+    synchronized void addMessage(MessageId id, Message message) {
         map.put(id, message);
     }
 



Mime
View raw message