mirror of https://github.com/apache/activemq.git
NO JIRA - Clear journalSize counter
The journalSize counter should be set to 0 after KahaDB is shut down. Usually, a store is not restarted again after stopping, but if it ever was the value would be wrong since it wasn't reset back to 0.
This commit is contained in:
parent
ef129c21cd
commit
e07809dec6
|
@ -446,8 +446,9 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
|||
checkpointThread.join();
|
||||
}
|
||||
}
|
||||
//clear the cache on shutdown of the store
|
||||
//clear the cache and journalSize on shutdown of the store
|
||||
storeCache.clear();
|
||||
journalSize.set(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue