[Xapian-discuss] Atomic DB rebuilds
Sam Liddicott
sam at liddicott.com
Tue Oct 5 13:30:54 BST 2004
Richard Boulton wrote:
>On Tue, 2004-10-05 at 09:22 +0100, Sam Liddicott wrote:
>
>
>>Does omega chdir to the database dir before opening all the files?
>>
>>
>
>No.
>
>
>
>> Or is there a race condition as the symlink changes if a DB is being
>>opened?
>>
>>
>
>I think there is. Possibly this could be solved by using readlink(2) to
>read the actual path pointed to by the symlink, and constructing the
>database path based on the real path.
>
>
Repeatedly calling readlink as I now have a couple of levels of symlink
redirection.
Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tartarus.org/pipermail/xapian-discuss/attachments/20041005/bb29c85d/attachment.htm
More information about the Xapian-discuss
mailing list