Project

General

Profile

« Previous | Next » 

Revision 9382

Added by Jing Tao about 9 years ago

In the systemMetadataChanged method, we will update system metadata when the local serial version is less than or equals the comming one.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1460 1460
            if(currentLocalSysMeta == null) {
1461 1461
                throw new InvalidRequest("1334", "We can't find the system metadata in the node for the id "+pid.getValue());
1462 1462
            }
1463
            if (currentLocalSysMeta.getSerialVersion().longValue() < serialVersion ) {
1463
            if (currentLocalSysMeta.getSerialVersion().longValue() <= serialVersion ) {
1464 1464
                try {
1465 1465
                    newSysMeta = cn.getSystemMetadata(null, pid);
1466 1466
                } catch (NotFound e) {
......
1576 1576
            HazelcastService.getInstance().getSystemMetadataMap().unlock(pid);
1577 1577
        }
1578 1578
        
1579
        if (currentLocalSysMeta.getSerialVersion().longValue() < serialVersion ) {
1579
        if (currentLocalSysMeta.getSerialVersion().longValue() <= serialVersion ) {
1580 1580
            // attempt to re-register the identifier (it checks if it is a doi)
1581 1581
            try {
1582 1582
                DOIService.getInstance().registerDOI(newSysMeta);

Also available in: Unified diff