summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/com/healthmarketscience/jackcess/Database.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Database.java b/src/java/com/healthmarketscience/jackcess/Database.java
index 4f2f753..5b5e9d5 100644
--- a/src/java/com/healthmarketscience/jackcess/Database.java
+++ b/src/java/com/healthmarketscience/jackcess/Database.java
@@ -697,6 +697,7 @@ public class Database
FileChannel channel = openChannel(mdbFile, false);
channel.truncate(0);
transferFrom(channel, getResourceAsStream(fileFormat._emptyFile));
+ channel.force(true);
return new Database(channel, autoSync, fileFormat, charset, timeZone,
null);
}