Revision 3230
Added by Jing Tao almost 17 years ago
ReplicationHandler.java | ||
---|---|---|
67 | 67 |
private static int DOCERRORNUMBER = 1; |
68 | 68 |
private static int REVINSERTNUMBER = 1; |
69 | 69 |
private static int REVERRORNUMBER = 1; |
70 |
private String ipAddress = "192.186.1.1"; |
|
71 | 70 |
public ReplicationHandler() |
72 | 71 |
{ |
73 | 72 |
//this.out = o; |
... | ... | |
359 | 358 |
docHomeServer, |
360 | 359 |
remoteserver, tableName, true,// true is for time replication |
361 | 360 |
createdDate, |
362 |
updatedDate, ipAddress);
|
|
361 |
updatedDate); |
|
363 | 362 |
logMetacat.info("Successfully replicated doc " + accNumber); |
364 | 363 |
if (tableName.equals(DocumentImpl.DOCUMENTTABLE)) |
365 | 364 |
{ |
... | ... | |
472 | 471 |
tableName, |
473 | 472 |
true, //true means timed replication |
474 | 473 |
createdDate, |
475 |
updatedDate,ipAddress);
|
|
474 |
updatedDate); |
|
476 | 475 |
|
477 | 476 |
logMetacat.info("Successfully to write datafile " + accNumber); |
478 | 477 |
/*MetacatReplication.replLog("wrote datafile " + accNumber + " from " + |
... | ... | |
551 | 550 |
//so we just add one for it. This rev number is no sence. |
552 | 551 |
String accnum=docId+util.getOption("accNumSeparator")+"1"; |
553 | 552 |
//System.out.println("accnum: "+accnum); |
554 |
DocumentImpl.delete(accnum, null, null, notifyServer, ipAddress);
|
|
553 |
DocumentImpl.delete(accnum, null, null, notifyServer); |
|
555 | 554 |
logMetacat.info("Successfully deleted doc " + docId); |
556 | 555 |
MetacatReplication.replLog("Doc " + docId + " deleted"); |
557 | 556 |
} |
Also available in: Unified diff
Somehow the change went to the head rather than branch. So i rollback the change in head.