Project

General

Profile

« Previous | Next » 

Revision 6783

only create guid->docid mapping during metadata replication if it does not already exist
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5520

View differences:

src/edu/ucsb/nceas/metacat/replication/ReplicationService.java
533 533
							SystemMetadata.class,
534 534
							new ByteArrayInputStream(systemMetadataXML.getBytes("UTF-8")));
535 535
				// need the guid-to-docid mapping
536
				IdentifierManager.getInstance().createMapping(sysMeta.getIdentifier().getValue(), docid);
536
				boolean mappingExists = true;
537
		      	mappingExists = IdentifierManager.getInstance().identifierExists(sysMeta.getIdentifier().getValue());
538
		      	if (!mappingExists) {
539
		      		IdentifierManager.getInstance().createMapping(sysMeta.getIdentifier().getValue(), docid);
540
		      	}
537 541
				// save the system metadata
538 542
				HazelcastService.getInstance().getSystemMetadataMap().put(sysMeta.getIdentifier(), sysMeta);
539 543
			}

Also available in: Unified diff