mirror of https://github.com/apache/activemq.git
Apply patch for http://issues.apache.org/activemq/browse/AMQ-1998
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@805873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
76d3b4665c
commit
317c438825
|
@ -501,7 +501,8 @@ public class AMQPersistenceAdapter implements PersistenceAdapter, UsageListener,
|
|||
* @param destination
|
||||
*/
|
||||
public void removeQueueMessageStore(ActiveMQQueue destination) {
|
||||
queues.remove(destination);
|
||||
AMQMessageStore store= queues.remove(destination);
|
||||
referenceStoreAdapter.removeQueueMessageStore(destination);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -141,6 +141,13 @@ public class KahaPersistenceAdapter implements PersistenceAdapter {
|
|||
*/
|
||||
public void removeQueueMessageStore(ActiveMQQueue destination) {
|
||||
queues.remove(destination);
|
||||
try{
|
||||
if(theStore!=null){
|
||||
theStore.deleteMapContainer(destination,"queue-data");
|
||||
}
|
||||
}catch(IOException e ){
|
||||
LOG.error("Failed to remove store map container for queue:"+destination, e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue