Skip to content

Commit

Permalink
GeoNetwork harvester - avoid double counting of updated metadata.
Browse files Browse the repository at this point in the history
This happens with existing metadata managed by another harvester if the uuid collision policy is set to override
  • Loading branch information
josegar74 committed Sep 26, 2024
1 parent c932372 commit a877881
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//=============================================================================
//=== Copyright (C) 2001-2023 Food and Agriculture Organization of the
//=== Copyright (C) 2001-2024 Food and Agriculture Organization of the
//=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
//=== and United Nations Environment Programme (UNEP)
//===
Expand Down Expand Up @@ -216,7 +216,6 @@ public HarvestResult align(SortedSet<RecordInfo> records, List<HarvestError> err
params.useChangeDateForUpdate(),
localUuids.getChangeDate(ri.uuid), true);
log.info("Overriding record with uuid " + ri.uuid);
result.updatedMetadata++;

if (params.isIfRecordExistAppendPrivileges()) {
addPrivileges(id, params.getPrivileges(), localGroups, context);
Expand Down

0 comments on commit a877881

Please sign in to comment.