Project

General

Profile

« Previous | Next » 

Revision 5324

Added by berkley almost 14 years ago

replication of guids now works. tested this for both forced replication and update/insert/delete triggered replication

View differences:

ReplicationService.java
529 529
			// Get home server of this docid
530 530
			String homeServer = (String) docinfoHash.get("home_server");
531 531
			String guid = (String) docinfoHash.get("guid");
532
			logReplication.debug("GUID: " + guid);
532
			
533
			logReplication.debug("Processing guid " + guid + 
534
			  " information from handleForceReplicationRequest: " + 
535
			  docinfoHash.toString());
536
      IdentifierManager idman = IdentifierManager.getInstance();
537
      if(guid != null && !idman.identifierExists(guid))
538
      { //if the guid was passed in, put it in the identifiers table
539
        logReplication.debug("Creating guid/docid mapping for docid " + 
540
          docinfoHash.get("docid") + " and guid: " + guid);
541
        idman.createMapping(guid, docinfoHash.get("docid"));
542
      }
543
      else
544
      {
545
        logReplication.debug("No guid information was included with the replicated document");
546
      }
547
      
533 548
			String createdDate = (String) docinfoHash.get("date_created");
534 549
			String updatedDate = (String) docinfoHash.get("date_updated");
535 550
			logReplication.info("ReplicationService.handleForceReplicateRequest - homeServer: " + homeServer);

Also available in: Unified diff