Revision 2619
Added by Jing Tao about 19 years ago
src/edu/ucsb/nceas/metacat/MetacatReplication.java | ||
---|---|---|
1349 | 1349 |
private String prepareRevisionDoc(DBConnection dbConn, String revSql, |
1350 | 1350 |
boolean replicateData) throws Exception |
1351 | 1351 |
{ |
1352 |
MetaCatUtil.debugMessage("The revision document sql is "+ revSql, 20); |
|
1352 | 1353 |
StringBuffer revDocList = new StringBuffer(); |
1353 |
PreparedStatement pstmt = dbConn.prepareStatement(revSql.toString());
|
|
1354 |
PreparedStatement pstmt = dbConn.prepareStatement(revSql); |
|
1354 | 1355 |
//usage count should increas 1 |
1355 | 1356 |
dbConn.increaseUsageCount(1); |
1356 | 1357 |
|
... | ... | |
1381 | 1382 |
revDocList.append(MetaCatUtil.getOption("datafileflag")); |
1382 | 1383 |
revDocList.append("</datafile>"); |
1383 | 1384 |
} |
1384 |
revDocList.append("</revsionDocument>"); |
|
1385 |
revDocList.append("</revisionDocument>");
|
|
1385 | 1386 |
|
1386 | 1387 |
}//else |
1388 |
tablehasrows = rs.next(); |
|
1387 | 1389 |
} |
1390 |
//System.out.println("The revision list is"+ revDocList.toString()); |
|
1388 | 1391 |
return revDocList.toString(); |
1389 | 1392 |
} |
1390 | 1393 |
|
... | ... | |
1453 | 1456 |
catch(Exception e) |
1454 | 1457 |
{ |
1455 | 1458 |
|
1456 |
System.out.println("error in MetacatReplication.handleGetCatalogRequest:"+
|
|
1457 |
e.getMessage()); |
|
1459 |
MetaCatUtil.debugMessage("error in MetacatReplication.handleGetCatalogRequest:"+
|
|
1460 |
e.getMessage(), 30);
|
|
1458 | 1461 |
e.printStackTrace(System.out); |
1459 | 1462 |
if(printFlag) |
1460 | 1463 |
{ |
Also available in: Unified diff
Fixed the bug in xml segment is not correct to express revision document list.