[metacat-cvs] metacat/src/edu/ucsb/nceas/metacat ReplicationHandler.java
Jing Tao
tao at ecoinformatics.org
Sat Nov 12 18:15:34 PST 2005
tao 05/11/12 18:15:33
Modified: src/edu/ucsb/nceas/metacat ReplicationHandler.java
Log:
Fixed log bug when xml_revision updated failed.
Revision Changes Path
1.71 +8 -6 metacat/src/edu/ucsb/nceas/metacat/ReplicationHandler.java
Index: ReplicationHandler.java
===================================================================
RCS file: /cvs/metacat/src/edu/ucsb/nceas/metacat/ReplicationHandler.java,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- ReplicationHandler.java 9 Nov 2005 02:53:28 -0000 1.70
+++ ReplicationHandler.java 13 Nov 2005 02:15:33 -0000 1.71
@@ -7,8 +7,8 @@
* Release: @release@
*
* '$Author: tao $'
- * '$Date: 2005/11/09 02:53:28 $'
- * '$Revision: 1.70 $'
+ * '$Date: 2005/11/13 02:15:33 $'
+ * '$Revision: 1.71 $'
*
* 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
@@ -390,7 +390,7 @@
}
else
{
- MetacatReplication.replLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber +
+ MetacatReplication.replErrorLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber +
" into "+tableName + " from " +
remoteserver +" because "+e.getMessage());
REVERRORNUMBER++;
@@ -513,7 +513,7 @@
}
else
{
- MetacatReplication.replLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber +
+ MetacatReplication.replErrorLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber +
" into "+tableName + " from " +
remoteserver +" because "+e.getMessage());
REVERRORNUMBER++;
@@ -1066,8 +1066,9 @@
{
logMetacat.error("Local rev for docid "+ docid + " could not "+
" be found because " + e.getMessage());
- MetacatReplication.replErrorLog("Docid "+ docid + " could not be "+
+ MetacatReplication.replErrorLog(""+DOCERRORNUMBER+"Docid "+ docid + " could not be "+
"written because error happend to find it's local revision");
+ DOCERRORNUMBER++;
throw new Exception (e.getMessage());
}
logMetacat.info("Local rev for docid "+ docid + " is "+
@@ -1159,8 +1160,9 @@
{
logMetacat.error("Local rev for docid "+ docid + " could not "+
" be found because " + e.getMessage());
- MetacatReplication.replErrorLog("Docid "+ docid + " could not be "+
+ MetacatReplication.replErrorLog(""+REVERRORNUMBER+" Docid "+ docid + " could not be "+
"written because error happend to find it's local revision");
+ REVERRORNUMBER++;
throw new Exception (e.getMessage());
}
logMetacat.info("rev list in xml_revision table for docid "+ docid + " is "+
More information about the Metacat-cvs
mailing list