Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Trying to revive RAM chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
robotia committed Mar 13, 2016
1 parent 366e734 commit f36d05a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.util.zip.DeflaterOutputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.InflaterInputStream;
@@ -16,359 +19,524 @@
@@ -16,359 +19,526 @@

public class RegionFile
{
Expand Down Expand Up @@ -809,6 +809,8 @@
+ if(this.dataBuffer != null)
+ {
+ this.dataBuffer.force();
+ this.dataFile.seek(0L);
+ this.dataFile.write(dataBuffer.array());
+ }
+ dataBuffer = null;
+ }
Expand Down

0 comments on commit f36d05a

Please sign in to comment.