Xapian exception leading to database corruption

David Edmondson dme at dme.org
Sun Dec 31 12:01:56 PST 2017


On Friday, 2017-12-29 at 10:40:02 UTC, David Edmondson wrote:

>>> Any suggestions? Is it possible to force a new chert database to be
>>> created rather than glass? (Mostly I'd like to get back to work!)
>>
>> According to Olly Betts,
>>
>>    With 1.4 you can pass Xapian::DB_BACKEND_CHERT in the flags when
>>    constructing the WritableDatabase object.
>>
>> So you'd have to hack the notmuch source, I'm guessing around line 55 of
>> database.cc
>>
>> #define DB_ACTION (Xapian::DB_CREATE_OR_OPEN | Xapian::DB_RETRY_LOCK | Xapian::DB_BACKEND_CHERT)

This worked and the initial scan ran through to completion (making
faster progress than the glass based version).

dme.
-- 
You can't hide from the flipside.


More information about the notmuch mailing list