kstaken 02/02/22 18:33:41
Modified: java/src/org/apache/xindice/core/filer BTree.java
Log:
Fixing index corrupted error when creating a collection with no docs.
Revision Changes Path
1.4 +2 -1
xml-xindice/java/src/org/apache/xindice/core/filer/BTree.java
Index: BTree.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/src/org/apache/xindice/core/filer/BTree.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BTree.java 15 Feb 2002 01:41:40 -0000 1.3
+++ BTree.java 23 Feb 2002 02:33:41 -0000 1.4
@@ -56,7 +56,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: BTree.java,v 1.3 2002/02/15 01:41:40 bradford Exp $
+ * $Id: BTree.java,v 1.4 2002/02/23 02:33:41 kstaken Exp $
*/
import org.apache.xindice.core.*;
@@ -139,6 +139,7 @@
rootNode.setValues(new Value[0]);
rootNode.setPointers(new long[0]);
rootNode.write();
+ flush();
close();
return true;
}