Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id F3D55431FB6 for ; Sat, 29 Jan 2011 08:10:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sGZw3oQdw4YL for ; Sat, 29 Jan 2011 08:10:09 -0800 (PST) Received: from everglades.pioto.org (mail.pioto.org [207.192.71.235]) by olra.theworths.org (Postfix) with ESMTP id A40B6431FB5 for ; Sat, 29 Jan 2011 08:10:09 -0800 (PST) Received: from aether (c-68-44-60-100.hsd1.nj.comcast.net [68.44.60.100]) (Authenticated sender: pioto) by everglades.pioto.org (Postfix) with ESMTPSA id 31BF8160644 for ; Sat, 29 Jan 2011 11:10:09 -0500 (EST) Date: Sat, 29 Jan 2011 11:10:08 -0500 From: Mike Kelly To: notmuch@notmuchmail.org Subject: Re: notmuch's idea of concurrency / failing an invocation Message-ID: <20110129111008.1a09bbb6@aether> In-Reply-To: References: <87fwsetdin.fsf@kepler.schwinge.homeip.net> <8762taxk9y.fsf@algae.riseup.net> <87vd1a84qj.fsf@servo.finestructure.net> <87fwsdobpy.fsf@yoom.home.cworth.org> <877hdps6og.fsf@kepler.schwinge.homeip.net> <1296228975-ner-3626@everglades> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/rt5B5s1KAIDLrfcKTh_yLoj"; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2011 16:10:10 -0000 --Sig_/rt5B5s1KAIDLrfcKTh_yLoj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 28 Jan 2011 11:57:34 -0500 Austin Clements 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. --=20 Mike Kelly --Sig_/rt5B5s1KAIDLrfcKTh_yLoj Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk1EO+AACgkQokMzJ47YCzoKcACguce/PNy2kSO8kiGLaJH88yL3 Z7YAn2ed8WCJhRto0n4MtzhrVCkqmd/0 =tVyH -----END PGP SIGNATURE----- --Sig_/rt5B5s1KAIDLrfcKTh_yLoj--