activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r503856 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/MapContainerImpl.java
Date Mon, 05 Feb 2007 20:31:18 GMT
Author: rajdavies
Date: Mon Feb  5 12:31:17 2007
New Revision: 503856

URL: http://svn.apache.org/viewvc?view=rev&rev=503856
Log:
ensure that init() is called on index - before clearing the index

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/MapContainerImpl.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/MapContainerImpl.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/MapContainerImpl.java?view=diff&rev=503856&r1=503855&r2=503856
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/MapContainerImpl.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/kaha/impl/container/MapContainerImpl.java
Mon Feb  5 12:31:17 2007
@@ -268,7 +268,7 @@
      */
     public synchronized Object put(Object key,Object value){
         load();
-        Object result=remove(key);;
+        Object result=remove(key);
         IndexItem item=write(key,value);
         try{
             index.store(key,item);
@@ -343,6 +343,7 @@
     public synchronized void clear(){
         checkClosed();
         loaded=true;
+        init();
         if(index!=null){
             try{
                 index.clear();



Mime
View raw message