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:
Christopher L. Shannon (cshannon) 2015-11-24 17:51:44 +00:00
parent ef129c21cd
commit e07809dec6
1 changed files with 2 additions and 1 deletions

View File

@ -446,8 +446,9 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
checkpointThread.join(); checkpointThread.join();
} }
} }
//clear the cache on shutdown of the store //clear the cache and journalSize on shutdown of the store
storeCache.clear(); storeCache.clear();
journalSize.set(0);
} }
} }