|
|
|
|
Re: [CDO]LastCommitTime can not be saved [message #632232 is a reply to message #632203] |
Tue, 12 October 2010 08:03 |
|
Am 12.10.2010 07:38, schrieb lu.xingxiao:
> Thank you, Eike. I'm using CDO3.0.0v20100614-1654, I will update it.
Apologies, there was a wrong auto-comment on the bugzilla (as Pascal pointed out)!
Although 3.0 GA was on June 29, the final GA build was already on June 14, one
day before this fix was committed.
Hence this fix was first released with SR1.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
>
>
>> Am 12.10.2010 06:35, schrieb lu.xingxiao:
>>> Hello,
>>> DBStore will save some properties to database when it "doDeactivate()". But when CDO Server is shut down abnormally, the last commit time will not be saved. This will cause OfflineClone can not sync properly after CDO Server restart. How to solve this problem?
>>
>> Can you try to set a breakpoint here: org.eclipse.emf.cdo.server.internal.db.DBStore.reStart()
>> And find out if the last lines are executed and what they're doing:
>>
>> long lastCommitTime = DBUtil.selectMaximumLong(connection, CDODBSchema.COMMIT_INFOS_TIMESTAMP);
>> setLastCommitTime(lastCommitTime);
>>
>> long lastNonLocalCommitTime = DBUtil.selectMaximumLong(connection, CDODBSchema.COMMIT_INFOS_TIMESTAMP,
>> CDOBranch.MAIN_BRANCH_ID + "<=" + CDODBSchema.COMMIT_INFOS_BRANCH);
>> setLastNonLocalCommitTime(lastNonLocalCommitTime);
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 1.39020 seconds