Revision 836
Added by bojilova about 23 years ago
src/edu/ucsb/nceas/metacat/MetacatReplication.java | ||
---|---|---|
319 | 319 |
{ |
320 | 320 |
//System.out.println("in handleforcereplicaterequest"); |
321 | 321 |
String server = ((String[])params.get("server"))[0]; |
322 |
if(!(replToServer(server))) |
|
323 |
{ //do not get the server's new document if we are not replicating from there |
|
324 |
return; |
|
325 |
} |
|
322 |
// BUG: it only receives the document from "server" and no need for this check here |
|
323 |
// if(!(replToServer(server))) |
|
324 |
// { //do not get the server's new document if we are not replicating from there |
|
325 |
// return; |
|
326 |
// } |
|
326 | 327 |
|
327 | 328 |
//the server that the request came from |
328 | 329 |
String docid = ((String[])params.get("docid"))[0]; |
Also available in: Unified diff
fix around one way replication:
when server A sends document to the servers in its list of replication servers with replicate=1 in xml_replication table,
the server B received the document does NOT need the opposite check on its end.