[Xapian-discuss] xapian database corrupt with multi-write

James Aylett james-xapian at tartarus.org
Tue Nov 1 15:19:42 GMT 2011


On 1 Nov 2011, at 14:27, 潘俊勇 wrote:

> And I am very confused that why the lock file is opened by 'cat'.

This is stated here <http://xapian.org/docs/admin_notes.html#single-writer-multiple-reader>, but there's no explanation: basically we need a very lightweight process that will be kept open until the server process exits.

> Sometimes I killed our server, but I found the file is still locked by 'cat'. It is very strange.
> Maybe the database is corrupt after I start the server again.

That sounds like something specific to your server is causing cat not to exit along with the server process, but Olly may be able to advise further. Is your server multi-process?

J

-- 
 James Aylett
 talktorex.co.uk - xapian.org - devfort.com




More information about the Xapian-discuss mailing list