git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@805873 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2009-08-19 16:38:45 +00:00
parent 76d3b4665c
commit 317c438825
2 changed files with 9 additions and 1 deletions

View File

@ -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);
}
/**

View File

@ -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);
}
}
/**