Project

General

Profile

Revision 6467

Lock the system metadata entry in hzSystemMetadata when calling setReplicationPolicy().

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
145 145
    systemMetadata.setReplicationPolicy(policy);
146 146
    
147 147
    // update the metadata
148
    HazelcastService.getInstance().getSystemMetadataMap().lock(systemMetadata.getIdentifier());
148 149
    HazelcastService.getInstance().getSystemMetadataMap().put(systemMetadata.getIdentifier(), systemMetadata);
150
    HazelcastService.getInstance().getSystemMetadataMap().unlock(systemMetadata.getIdentifier());
149 151

  
150 152
    return true;
151 153
  }

Also available in: Unified diff