Revision 9315
Added by Jing Tao about 9 years ago
src/edu/ucsb/nceas/metacat/dataone/CNodeService.java | ||
---|---|---|
826 | 826 |
String msg = "The replication request of the object identified by " + |
827 | 827 |
pid.getValue() + " failed. The error message was " + |
828 | 828 |
failure.getMessage() + "."; |
829 |
logMetacat.error(msg); |
|
829 | 830 |
} |
830 | 831 |
|
831 | 832 |
if (replicas.size() > 0 && replicas != null) { |
... | ... | |
921 | 922 |
targetReplica.getReplicaMemberNode().getValue()); |
922 | 923 |
} |
923 | 924 |
|
925 |
if(targetReplica.getReplicationStatus().equals(status)) { |
|
926 |
//There is no change in the status, we do nothing. |
|
927 |
return true; |
|
928 |
} |
|
929 |
|
|
924 | 930 |
targetReplica.setReplicationStatus(status); |
925 | 931 |
|
926 | 932 |
logMetacat.debug("Set the replication status for " + |
Also available in: Unified diff
In the setReplicaStatus method, if the coming status is the same one of the existing one, the system metadata will not be updated.