]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Truncate file after writing DataContainer to it 54/1554/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Mon, 12 Mar 2018 07:35:47 +0000 (09:35 +0200)
committerJussi Koskela <jussi.koskela@semantum.fi>
Mon, 12 Mar 2018 07:35:47 +0000 (09:35 +0200)
refs #7810

Change-Id: I5ab3f7b1e173b22f1183d4c1fbef1d5d260030e4

bundles/org.simantics.databoard/src/org/simantics/databoard/container/DataContainers.java

index 4a74e2e50fb79e9a6bafa2165e5bc4816b386e5e..21e54d8975d5379d657e3f6ce468467de9452e24 100644 (file)
@@ -232,6 +232,7 @@ public class DataContainers {
         BinaryFile wf = new BinaryFile( output);
         try {
             writeFile(wf, container);
+            wf.setLength(wf.position());
         } finally {
             wf.close();
         }