diff --git a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/DataManager.java b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/DataManager.java index 337fedd809..74b8a22d68 100644 --- a/activemq-core/src/main/java/org/apache/activemq/kaha/impl/DataManager.java +++ b/activemq-core/src/main/java/org/apache/activemq/kaha/impl/DataManager.java @@ -104,6 +104,7 @@ final class DataManager{ for(Iterator i=fileMap.values().iterator();i.hasNext();){ DataFile dataFile=(DataFile) i.next(); dataFile.force(); + dataFile.close(); } fileMap.clear(); }