Project

General

Profile

« Previous | Next » 

Revision 7420

In CNodeService.updateReplicationMetadata(), we are setting the replicaVerifiedDate() when we update or wholesale add a new replica. However, in setReplicationStatus(), we only do so when there's a new entry. Change setReplicationStatus() to also update the replicaVerifiedDate on updates of existing entries to be more consistent with other changes. This affects node prioritization based on this date timestamp. Thanks to Skye for pointing this out.

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
676 676
              }
677 677
              
678 678
              targetReplica.setReplicationStatus(status);
679
              targetReplica.setReplicaVerified(Calendar.getInstance().getTime());
679 680
              logMetacat.debug("Set the replication status for " + 
680 681
                  targetReplica.getReplicaMemberNode().getValue() + " to " +
681 682
                  targetReplica.getReplicationStatus() + " for identifier " +

Also available in: Unified diff