From: <mar...@us...> - 2010-07-23 11:02:31
|
Revision: 3267 http://bigdata.svn.sourceforge.net/bigdata/?rev=3267&view=rev Author: martyncutcher Date: 2010-07-23 11:02:24 +0000 (Fri, 23 Jul 2010) Log Message: ----------- add commit override to ensure buffer is flushed Modified Paths: -------------- trunk/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java Modified: trunk/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java =================================================================== --- trunk/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java 2010-07-22 20:30:34 UTC (rev 3266) +++ trunk/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java 2010-07-23 11:02:24 UTC (rev 3267) @@ -470,6 +470,15 @@ } /** + * Flushes the write cache (if enabled). + */ + public void commit() { + + flushWriteCache(); + + } + + /** * Writes the {@link #writeCache} through to the disk and its position is * reset to zero. * <p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |