Project

General

Profile

« Previous | Next » 

Revision 8887

Added by Jing Tao about 10 years ago

Remove the system metadata for data objects.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
397 397

  
398 398
			  SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid);
399 399
			  if ( sysMeta != null ) {
400
				sysMeta.setSerialVersion(sysMeta.getSerialVersion().add(BigInteger.ONE));
400
				/*sysMeta.setSerialVersion(sysMeta.getSerialVersion().add(BigInteger.ONE));
401 401
				sysMeta.setArchived(true);
402 402
				sysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime());
403
				HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta);
403
				HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta);*/
404
			    //move the systemmetadata object from the map and delete the records in the systemmetadata database table
405
	            //since this is cn, we don't need worry about the mn solr index.
406
	            HazelcastService.getInstance().getSystemMetadataMap().remove(pid);
407
	            HazelcastService.getInstance().getIdentifiers().remove(pid);
404 408
				
405 409
			  } else {
406 410
				  throw new ServiceFailure("4962", "Couldn't delete the object " + pid.getValue() +

Also available in: Unified diff