Project

General

Profile

« Previous | Next » 

Revision 6666

save SystemMetadata when replicating data and metadata -- this way if/when the node decides to be a DataONE MN it already has the information needed for each object

View differences:

ReplicationService.java
603 603
							new ByteArrayInputStream(systemMetadataXML.getBytes("UTF-8")));
604 604
				// need the guid-to-docid mapping
605 605
				IdentifierManager.getInstance().createMapping(sysMeta.getIdentifier().getValue(), docid);
606
				// save the system metadata
607
				HazelcastService.getInstance().getSystemMetadataMap().put(sysMeta.getIdentifier(), sysMeta);
606 608
			}
607 609
      
608 610
			// dates
......
879 881
		      				  new ByteArrayInputStream(systemMetadataXML.getBytes("UTF-8")));
880 882
		      	  // need the guid-to-docid mapping
881 883
		      	  IdentifierManager.getInstance().createMapping(sysMeta.getIdentifier().getValue(), docid);
884
		      	  // save the system metadata
885
		      	  HazelcastService.getInstance().getSystemMetadataMap().put(sysMeta.getIdentifier(), sysMeta);
882 886
		        }
883 887

  
884 888
				if (writeException != null) {

Also available in: Unified diff