added soft bunny log message - so we don't scare folks when we delete all their messages on startup

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@520819 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-03-21 09:37:39 +00:00
parent 54114ccf77
commit 47510d8eee
1 changed files with 8 additions and 6 deletions

View File

@ -1048,12 +1048,14 @@ public class BrokerService implements Service, Serializable {
/**
* @return the tempDataStore
*/
public synchronized Store getTempDataStore() {
if (tempDataStore == null){
String name = getTmpDataDirectory().getPath();
try {
StoreFactory.delete(name);
tempDataStore = StoreFactory.open(name,"rw");
public synchronized Store getTempDataStore(){
if(tempDataStore==null){
String name=getTmpDataDirectory().getPath();
try{
log.info("About to delete any non-persistent messages that may have overflowed to disk ...");
StoreFactory.delete(name);
log.info("Successfully deleted temporary storage");
tempDataStore=StoreFactory.open(name,"rw");
}catch(IOException e){
throw new RuntimeException(e);
}