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:
Robert Davies 2007-03-01 19:43:12 +00:00
parent 167f99a3a1
commit 9fd9189a17
1 changed files with 3 additions and 0 deletions

View File

@ -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;