[metacat-cvs] metacat/src/edu/ucsb/nceas/metacat DBSAXHandler.java
Saurabh Garg
sgarg at ecoinformatics.org
Wed Nov 2 10:31:33 PST 2005
sgarg 05/11/02 10:31:33
Modified: src/edu/ucsb/nceas/metacat DBSAXHandler.java
Log:
Fix for bug in the previous commit
Revision Changes Path
1.103 +6 -5 metacat/src/edu/ucsb/nceas/metacat/DBSAXHandler.java
Index: DBSAXHandler.java
===================================================================
RCS file: /cvs/metacat/src/edu/ucsb/nceas/metacat/DBSAXHandler.java,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- DBSAXHandler.java 2 Nov 2005 18:16:54 -0000 1.102
+++ DBSAXHandler.java 2 Nov 2005 18:31:32 -0000 1.103
@@ -8,8 +8,8 @@
* Release: @release@
*
* '$Author: sgarg $'
- * '$Date: 2005/11/02 18:16:54 $'
- * '$Revision: 1.102 $'
+ * '$Date: 2005/11/02 18:31:32 $'
+ * '$Revision: 1.103 $'
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -528,11 +528,12 @@
xmlDocCheck.close();
// make sure the while loop will be ended in reseaonable time
long stopTime = System.currentTimeMillis();
- if ((stopTime - startTime) > INDEXDELAY) { throw new Exception(
+ if ((stopTime - startTime) > INDEXDELAY) {
+ logMetacat.warn("Couldn't find the docid for index build in "
+ + "reseaonable time!");
+ throw new Exception(
"Couldn't find the docid for index build in "
+ "reseaonable time!");
- logMetacat.warn("Couldn't find the docid for index build in "
- + "reseaonable time!");
}
}//while
} catch (Exception e) {
More information about the Metacat-cvs
mailing list