Revision 7021
Added by ben leinfelder about 12 years ago
MNodeService.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import java.io.IOException; |
27 | 27 |
import java.io.InputStream; |
28 |
import java.math.BigInteger; |
|
28 | 29 |
import java.security.NoSuchAlgorithmException; |
29 | 30 |
import java.sql.SQLException; |
30 | 31 |
import java.util.Calendar; |
... | ... | |
403 | 404 |
Date now = Calendar.getInstance().getTime(); |
404 | 405 |
sysmeta.setDateSysMetadataModified(now); |
405 | 406 |
sysmeta.setDateUploaded(now); |
407 |
|
|
408 |
// set the serial version |
|
409 |
sysmeta.setSerialVersion(BigInteger.ZERO); |
|
410 |
|
|
406 | 411 |
// call the shared impl |
407 | 412 |
return super.create(session, pid, object, sysmeta); |
408 | 413 |
} |
Also available in: Unified diff
actually, let's set the serialVersion during the MN.create() call so that the HZ map and the backing store have the same information immediately. Also, this is how the docs specify it.
http://mule1.dataone.org/ArchitectureDocs-current/design/SystemMetadata.html