Skip to content

Commit

Permalink
more commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
artntek committed Sep 21, 2023
1 parent 5cd64ad commit 6a1a9e3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/edu/ucsb/nceas/metacat/DocumentImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -3463,11 +3463,8 @@ public static void delete(
//update systemmetadata table and solr index
SystemMetadata sysMeta = SystemMetadataManager.getInstance().get(guid);
if (sysMeta != null) {
//sysMeta.setSerialVersion(sysMeta.getSerialVersion().add(BigInteger.ONE));
sysMeta.setArchived(true);
//sysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime());
if (!removeAll) {
//HazelcastService.getInstance().getSystemMetadataMap().put(guid, sysMeta);
SystemMetadataManager.getInstance().store(sysMeta);
MetacatSolrIndex.getInstance().submit(guid, sysMeta, false);
} else {
Expand All @@ -3490,11 +3487,6 @@ public static void delete(

// remove the file if called for
if (removeAll) {
//logMetacat.debug("the identifier set contains "+guid.getValue()+" is
// "+HazelcastService.getInstance().getIdentifiers().contains(guid));
//HazelcastService.getInstance().getIdentifiers().remove(guid);
//logMetacat.debug("the identifier set contains "+guid.getValue()+" after
// removing is "+HazelcastService.getInstance().getIdentifiers().contains(guid));
deleteFromFileSystem(accnum, isXML);
}

Expand Down

0 comments on commit 6a1a9e3

Please sign in to comment.