Project

General

Profile

« Previous | Next » 

Revision 9246

Added by Jing Tao over 9 years ago

Add the code to call cn.synchroinize at the method of updateSystemMetadata.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
2192 2192
      if(success) {
2193 2193
          //TODO
2194 2194
          //notify the cns the synchornize the new system metadata.
2195
          this.cn = D1Client.getCN();
2196
          try {
2197
              this.cn.synchronize(null, pid);
2198
          } catch (Exception e) {
2199
              logMetacat.error("Can't update the systemmetadata of pid "+pid.getValue()+" in CNs since "+e.getMessage());
2200
          }
2195 2201
      }
2196 2202
      return success;
2197 2203
    }

Also available in: Unified diff