mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
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:
parent
c4c9f0b983
commit
aa18c5d6fc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user