kstaken 02/02/22 15:02:29
Modified: java/src/org/apache/xindice Stopwatch.java
java/src/org/apache/xindice/core/indexer IndexManager.java
Log:
Minor change to keep behavior the same in the event of an error
Revision Changes Path
1.2 +2 -2 xml-xindice/java/src/org/apache/xindice/Stopwatch.java
Index: Stopwatch.java
===================================================================
RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/Stopwatch.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Stopwatch.java 6 Dec 2001 19:33:53 -0000 1.1
+++ Stopwatch.java 22 Feb 2002 23:02:29 -0000 1.2
@@ -1,5 +1,5 @@
package org.apache.xindice;
-
+
/*
* The Apache Software License, Version 1.1
*
@@ -56,7 +56,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: Stopwatch.java,v 1.1 2001/12/06 19:33:53 bradford Exp $
+ * $Id: Stopwatch.java,v 1.2 2002/02/22 23:02:29 kstaken Exp $
*/
/**
1.3 +9 -9
xml-xindice/java/src/org/apache/xindice/core/indexer/IndexManager.java
Index: IndexManager.java
===================================================================
RCS file:
/home/cvs/xml-xindice/java/src/org/apache/xindice/core/indexer/IndexManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- IndexManager.java 22 Feb 2002 22:29:50 -0000 1.2
+++ IndexManager.java 22 Feb 2002 23:02:29 -0000 1.3
@@ -56,7 +56,7 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
- * $Id: IndexManager.java,v 1.2 2002/02/22 22:29:50 kstaken Exp $
+ * $Id: IndexManager.java,v 1.3 2002/02/22 23:02:29 kstaken Exp $
*/
import org.apache.xindice.core.*;
@@ -461,17 +461,17 @@
events.setContentHandler(this);
events.setProperty(HANDLER, this);
events.start();
-
- if ( action == ACTION_CREATE || action == ACTION_UPDATE ) {
- try {
- collection.flushSymbolTable();
- }
- catch ( Exception e ) {
- }
- }
}
catch ( Exception e ) {
org.apache.xindice.Debug.printStackTrace(e);
+ }
+
+ if ( action == ACTION_CREATE || action == ACTION_UPDATE ) {
+ try {
+ collection.flushSymbolTable();
+ }
+ catch ( Exception e ) {
+ }
}
}