Revision 6079
Added by ben leinfelder almost 13 years ago
ReplicationHandler.java | ||
---|---|---|
445 | 445 |
//handle systemMetadata |
446 | 446 |
if(docName.trim().equals("systemMetadata")) |
447 | 447 |
{ |
448 |
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!creating mapping for systemMetadata: guid: " + guid + " localId: " + docinfoHash.get("docid")); |
|
449 |
idman.createSystemMetadataMapping(guid, docinfoHash.get("docid")); |
|
448 |
if (actions.equalsIgnoreCase("UPDATE")) { |
|
449 |
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!update mapping for systemMetadata: guid: " + guid + " localId: " + docinfoHash.get("docid")); |
|
450 |
idman.updateSystemMetadataMapping(guid, docinfoHash.get("docid")); |
|
451 |
} else { |
|
452 |
System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!creating mapping for systemMetadata: guid: " + guid + " localId: " + docinfoHash.get("docid")); |
|
453 |
idman.createSystemMetadataMapping(guid, docinfoHash.get("docid")); |
|
454 |
} |
|
455 |
|
|
450 | 456 |
Long dateUploadedLong = new Long(docinfoHash.get("date_uploaded")); |
451 | 457 |
Long dateModifiedLong = new Long(docinfoHash.get("date_modified")); |
452 | 458 |
idman.insertAdditionalSystemMetadataFields( |
Also available in: Unified diff
use update method to update the mapping between local and guid (d1) when we get a force replication request that is an "update