[Mulgara-svn] r170 - trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa

andrae at mulgara.org andrae at mulgara.org
Thu Feb 22 12:48:33 UTC 2007


Author: andrae
Date: 2007-02-22 06:48:33 -0600 (Thu, 22 Feb 2007)
New Revision: 170

Modified:
   trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java
Log:
Single line fix to force the writing of the gNode IntFile in the prepare() on the string-pool.

The result of not doing this is to allow any buffered data to be lost if the jvm dies before
the jvm flushes it to disk.  This therefore can only trigger a bug if the server crashes or
is killed while under heavy write-load.



Modified: trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java
===================================================================
--- trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java	2007-02-13 06:10:14 UTC (rev 169)
+++ trunk/src/jar/store-stringpool-xa/java/org/mulgara/store/stringpool/xa/XAStringPoolImpl.java	2007-02-22 12:48:33 UTC (rev 170)
@@ -619,6 +619,7 @@
       for (int i = 0; i < NR_BLOCK_FILES; ++i) {
         blockFiles[i].force();
       }
+      gNodeToDataFile.force();
 
       // Write the metaroot.
       int newPhaseIndex = 1 - phaseIndex;




More information about the Mulgara-svn mailing list