ensure that init() is called on index - before clearing the index

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@503856 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-02-05 20:31:17 +00:00
parent c4c9f0b983
commit aa18c5d6fc

View File

@ -268,7 +268,7 @@ public final class MapContainerImpl extends BaseContainerImpl implements MapCont
*/
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 final class MapContainerImpl extends BaseContainerImpl implements MapCont
public synchronized void clear(){
checkClosed();
loaded=true;
init();
if(index!=null){
try{
index.clear();