mirror of https://github.com/apache/activemq.git
ensure deleteAllMessages gets passed to the persistence adapter whilst it still makes sense
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@513467 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
167f99a3a1
commit
9fd9189a17
|
@ -1332,6 +1332,9 @@ public class BrokerService implements Service, Serializable {
|
|||
// we must start the persistence adaptor before we can create the region
|
||||
// broker
|
||||
getPersistenceAdapter().setUsageManager(getProducerUsageManager());
|
||||
if(this.deleteAllMessagesOnStartup){
|
||||
getPersistenceAdapter().deleteAllMessages();
|
||||
}
|
||||
getPersistenceAdapter().start();
|
||||
|
||||
DestinationInterceptor destinationInterceptor = null;
|
||||
|
|
Loading…
Reference in New Issue