Project

General

Profile

« Previous | Next » 

Revision 1034

Added by Jing Tao over 22 years ago

In writeDataFile method, using getDataFileLockGrant(docid) replace getDataFileLockGrant(docid, serverCode). The latter will cause a problem

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
357 357
      throw new Exception("Please specify the stored file name");
358 358
    }
359 359
    //make sure user have file lock grant(local metacat means have it too)
360
    if (getDataFileLockGrant(accnum, serverCode))
360
    if (getDataFileLockGrant(accnum))
361 361
    {
362 362
      //register data file into xml_documents table
363 363
      registerDocument(docname, doctype, accnum, user, serverCode);

Also available in: Unified diff