On 29 Jun 2004, at 22:15, Matt Sergeant wrote:

On 28 Jun 2004, at 06:09, Alex Sergeyev wrote:

I looked into libxml code. There are no any filelocks... Does it mean that I can have problems with my AxKit application which reads XML in one place for site visitors and can modify them in other place for site admins?

How can I make workaround if yes?

Use atomic move in your file updates. Write to somewhere on the same filesystem (mount point) and move the file (or hard link and unlink the original).




Though in that case, the update of the file itself would be atomic (ie, you won't get a partial file being
read), but there is still a potential for another webserver to read the old (stale) file,
before the new file is created. At this point you need to consider if that is an issue, or
if you need to maybe write your own provider which does locking.


Mike.


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



Reply via email to