Project

General

Profile

« Previous | Next » 

Revision 6806

sort the docids so that "old" revisions are processed before newer ones

View differences:

src/edu/ucsb/nceas/metacat/admin/upgrade/GenerateSystemMetadata.java
40 40
import org.dataone.service.exceptions.ServiceFailure;
41 41
import org.dataone.service.types.v1.SystemMetadata;
42 42

  
43
import edu.emory.mathcs.backport.java.util.Collections;
43 44
import edu.ucsb.nceas.metacat.AccessionNumberException;
44 45
import edu.ucsb.nceas.metacat.DBUtil;
45 46
import edu.ucsb.nceas.metacat.DocumentImpl;
......
101 102
        //get the list of ids with no SM
102 103
        //List<String> idList = IdentifierManager.getInstance().getLocalIdsWithNoSystemMetadata(true);
103 104
        List<String> idList = DBUtil.getAllDocidsByType(null, true);
105
        Collections.sort(idList);
104 106
        for (String localId : idList) { 
105 107
            //for each id, add a system metadata doc
106 108
        	try {

Also available in: Unified diff