Re: [RFC patch 2/2] lib: handle DatabaseModifiedError in _n_message_ensure_metadata

Subject: Re: [RFC patch 2/2] lib: handle DatabaseModifiedError in _n_message_ensure_metadata

Date: Fri, 24 Feb 2017 10:21:06 +0000

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Gaute Hope


David Bremner writes on februar 24, 2017 3:49:
> David Bremner <david@tethera.net> writes:
> 
>> The error handling here still needs work. The retry count should be
>> handled in more sane way, and both running out of retries and an error
>> return from notmuch_database_reopen should be handled.
> 
> Probably the number of retries can be limited to 1, since afaict, reopen
> is not going to return any recoverable errors.

Does _reopen block if the db is locked?

Thread: