|
From: <mar...@us...> - 2010-07-23 11:04:06
|
Revision: 3268
http://bigdata.svn.sourceforge.net/bigdata/?rev=3268&view=rev
Author: martyncutcher
Date: 2010-07-23 11:04:00 +0000 (Fri, 23 Jul 2010)
Log Message:
-----------
add commit override to ensure writeCache is flushed
Modified Paths:
--------------
branches/LEXICON_REFACTOR_BRANCH/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java
Modified: branches/LEXICON_REFACTOR_BRANCH/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java
===================================================================
--- branches/LEXICON_REFACTOR_BRANCH/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java 2010-07-23 11:02:24 UTC (rev 3267)
+++ branches/LEXICON_REFACTOR_BRANCH/bigdata/src/java/com/bigdata/journal/DiskOnlyStrategy.java 2010-07-23 11:04:00 UTC (rev 3268)
@@ -472,6 +472,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.
|