Re: notmuch's idea of concurrency / failing an invocation

Subject: Re: notmuch's idea of concurrency / failing an invocation

Date: Sat, 29 Jan 2011 11:10:08 -0500

To: notmuch@notmuchmail.org

Cc:

From: Mike Kelly


On Fri, 28 Jan 2011 11:57:34 -0500
Austin Clements <amdragon@mit.edu> wrote:

> Yes, exactly.  All of this.  Unfortunately, Xapian doesn't expose the
> ability to block on the lock (see the fcntl call in
> backends/flint_lock.cc, which is hard-coded to the non-blocking
> F_SETLK instead of F_SETLKW), so we'd either need a new Xapian
> option, or we would just have to wrap our own flock/fcntl lock around
> things as you suggest.

Hrm. Do you know if Xapian upstream would be open to a patch to support
optional blocking locks? We can't be the only ones hitting these sorts
of issues.

-- 
Mike Kelly
signature.asc (application/pgp-signature)

Thread: