Oliver Braun wrote:

> just for the record (as I already told Jan on IRC):
> 
> currently every file openend in read-write mode gets locked by
> osl_openFile (in libuno_sal) if SAL_ENABLE_FILELOCKING environment var
> is set (which it is by default in soffice wrapper script).
> 
> OOo apps that try to access a locked file in read-write mode just fail,
> but immediatly retry in read-only mode.
> 
> Sounds as we need to split locking from osl_openFile ..
> 
> - Oliver

I'm not sure if concurrent access for documents is a good idea.
Currently our merging is not perfect and you will have a lot of
disappointed users. For me this is doing the second step before the
first. Without a better merging we can't offer concurrency.

But maybe I'm too pessimistic. Perhaps it doesn't work perfect in
competitive products also and people are happy with what they get?!

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.
If a file can't be opened for writing we currently decide to open it
"read only" -  but that happens somewhere in the framework code. We
could also allow editing. But then we must remember that we are not the
"owner" of the file when it shall be saved. And we must be able to deal
with the situation that we can't save the file as it is still opened by
somebody else. Both seems to be doable.

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