Revision 10280
Added by Jing Tao over 7 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
524 | 524 |
if(sysmeta.getFormatId() != null) { |
525 | 525 |
formatId = sysmeta.getFormatId().getValue(); |
526 | 526 |
} |
527 |
localId = insertOrUpdateDocument(object, "UTF-8", pid, session, "update", formatId); |
|
527 |
localId = insertOrUpdateDocument(object, "UTF-8", pid, session, "update", formatId, sysmeta.getChecksum());
|
|
528 | 528 |
|
529 | 529 |
// register the newPid and the generated localId |
530 | 530 |
if (newPid != null) { |
... | ... | |
545 | 545 |
} else { |
546 | 546 |
|
547 | 547 |
// update the data object |
548 |
localId = insertDataObject(object, newPid, session); |
|
548 |
localId = insertDataObject(object, newPid, session, sysmeta.getChecksum());
|
|
549 | 549 |
|
550 | 550 |
} |
551 | 551 |
|
Also available in: Unified diff
Add the checksum as a parameter to the method handleInsertOrUpdate.