Hi, I've successfully been using Xapian and I am facing a new problem today : my database is locked ! I guess it happened when one of my scriptindex process was killed by mistake ... I did not find in the list archive any way to unlock it whether by hand or with a script. Someone has ever faced and fixed this issue ? I am under Linux (RH FC3) with last version of Xapian. Regards -- David LEVY {selenium} http://www.davidlevy.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.tartarus.org/pipermail/xapian-discuss/attachments/20051031/67f070e7/attachment.htm
On Mon, Oct 31, 2005 at 12:20:50AM +0200, David Levy wrote:> I did not find in the list archive any way to unlock it whether by hand or > with a script.If you're sure the updating process is no longer running, just delete the file "db_lock" from inside the database directory. Updates are atomic, so the database will still be in a consistent state. The still-under-development Flint backend uses fcntl() for locking, so locks are automatically released if the process holding them dies. Cheers, Olly