Revision 2039
Added by Jing Tao over 20 years ago
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
423 | 423 |
} |
424 | 424 |
//rev is greater the last revsion number and revInDataBase isn't -1 |
425 | 425 |
// it is a updated data file |
426 |
else if (userSpecifyRev>revInDataBase && revInDataBase>0) |
|
426 |
else if (userSpecifyRev>revInDataBase && revInDataBase>=0)
|
|
427 | 427 |
{ |
428 | 428 |
|
429 | 429 |
//archive the old entry |
... | ... | |
1921 | 1921 |
//revIndataBase=-1, there is no record in xml_documents table |
1922 | 1922 |
//the document is a new one for local server, inert it into table |
1923 | 1923 |
//user specified rev should be great than 0 |
1924 |
if (revInDataBase==-1 && userSpecifyRev>0 ) |
|
1924 |
if (revInDataBase==-1 && userSpecifyRev>=0 )
|
|
1925 | 1925 |
{ |
1926 | 1926 |
// rev equals user specified |
1927 | 1927 |
rev=(new Integer(userSpecifyRev)).toString(); |
Also available in: Unified diff
Fixed bug that version could not be zero in replication.