]> source.dussan.org Git - jackcess.git/commitdiff
ensure new database is flushed after creation as some users drop the Database returne...
authorJames Ahlborn <jtahlborn@yahoo.com>
Tue, 6 Dec 2011 02:13:25 +0000 (02:13 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Tue, 6 Dec 2011 02:13:25 +0000 (02:13 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@601 f203690c-595d-4dc9-a70b-905162fa7fd2

src/java/com/healthmarketscience/jackcess/Database.java

index 4f2f75379e992a53fd144f5772a1fd1a52e98e42..5b5e9d586c5607f9948846f179a93ace6b9f33e6 100644 (file)
@@ -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);
   }