[Xapian-discuss] xapian-compact seg faulting & Re:
[Xapian-discuss] Error msg xapian-compact: The revision being
read has been discarded - you should call
Xapian::Database::reopen() and retry the operation
Olly Betts
olly at survex.com
Tue Jun 13 19:17:12 BST 2006
On Tue, Jun 13, 2006 at 10:05:34AM -0800, oscaruser at programmer.net wrote:
> True something wrong with my setup. How I can send you the file (~6.4 MB gz)?
I'm not sure there's much point - we know it's broken. The interesting
question is how it got that way. What I really need is a way to
reproduce the problem - for example, a program I can run which produces
a bad database after a while. The bad database itself doesn't really
help.
Is this bad database a "one off" incident currently, or if you restart
the system does it produce another bad database after running for a
while?
I have had one thought about this - what you're doing that is unusual
is opening and closing the database for every document addition or
update. You could get the problem that you're seeing if there were a
flaw in the flint locking strategy which that usage pattern exposed.
I'll review the code and if I can't see a problem, run some tests.
Cheers,
Olly
More information about the Xapian-discuss
mailing list