mirror of https://github.com/apache/activemq.git
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:
parent
54114ccf77
commit
47510d8eee
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue