Jan Holesovsky wrote:

> Hi Niklas,
> 
> On Tuesday 09 January 2007 20:52, Niklas Nebel wrote:
> 
>> >> Besides that I don't think that something must be changed in osl. We
>> >> just have to change our way how we interpret the results from openFile.
>> >
>> > Unfortunately it must be.  I don't want to open the file again, I just
>> > want to set/clear the lock, and there's no API for that in osl.
>>
>> Why not open it again?
> 
> Sorry for the confusion, I should have been more verbose.  The file has to be 
> locked between loading the document from disk (for the merge) and the actual 
> saving.  We cannot close and open it again, because the other instance could 
> write in the meantime (however short) which would potentially lead to data 
> loss.

Ah, this made something more clear to me. My understanding was that you
have been talking about the initial access to the file when it is loaded
and found locked.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to