From 4510b4d781eb1f5ca17dc4eabfa4eedc410299a6 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 25 Sep 2014 13:29:39 +1700 Subject: [PATCH] Re: [PATCH] lib: Simplify close and codify aborting atomic section --- 6a/409cfbb46ef90599203bce924f1e9576a4161f | 131 ++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 6a/409cfbb46ef90599203bce924f1e9576a4161f diff --git a/6a/409cfbb46ef90599203bce924f1e9576a4161f b/6a/409cfbb46ef90599203bce924f1e9576a4161f new file mode 100644 index 000000000..f9467c6b1 --- /dev/null +++ b/6a/409cfbb46ef90599203bce924f1e9576a4161f @@ -0,0 +1,131 @@ +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 1721F431FAF + for ; Wed, 24 Sep 2014 13:29:49 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.1 +X-Spam-Level: +X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_NONE=-0.0001] 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 781ZTxqA43rO for ; + Wed, 24 Sep 2014 13:29:45 -0700 (PDT) +Received: from resqmta-po-06v.sys.comcast.net (resqmta-po-06v.sys.comcast.net + [96.114.154.165]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3F218431FC2 + for ; Wed, 24 Sep 2014 13:29:42 -0700 (PDT) +Received: from resomta-po-17v.sys.comcast.net ([96.114.154.241]) + by resqmta-po-06v.sys.comcast.net with comcast + id v8V81o0055Clt1L018VhjR; Wed, 24 Sep 2014 20:29:41 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by resomta-po-17v.sys.comcast.net with comcast + id v8Vf1o00e152l3L018VfeL; Wed, 24 Sep 2014 20:29:41 +0000 +Received: by odin.tremily.us (Postfix, from userid 1000) + id 2E9CB13AB278; Wed, 24 Sep 2014 13:29:39 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; + t=1411590579; bh=hdHdQSwGCX4HLK6JNB94jR99PU4ar3c2lO3IpkraVo0=; + h=Date:From:To:Cc:Subject:References:In-Reply-To; + b=nNKI8hkdcUZbKDo5uqSwpO8NZhk9cL/l/laNRSTkqFlm2ong2A0N+vF8PsZu4iCuz + gfYI54ljm/VkYbgUGVgYbl92B1DK4C9iOYO287RANHppwKC+TkMygGd7J9q1TJHNsh + FO1ClwP3Soz+zDzTMJI3xLN5IDgNBKMycDtumllc= +Date: Wed, 24 Sep 2014 13:29:39 -0700 +From: "W. Trevor King" +To: David Bremner +Subject: Re: [PATCH] lib: Simplify close and codify aborting atomic section +Message-ID: <20140924202939.GD20130@odin.tremily.us> +References: <1411400615-20934-1-git-send-email-amdragon@mit.edu> + <20140922165954.GI20827@odin.tremily.us> + <20140922185050.GB7970@csail.mit.edu> + <20140922190022.GO20827@odin.tremily.us> + <87iokc28mg.fsf@maritornes.cs.unb.ca> + <20140924181844.GB20130@odin.tremily.us> + <87d2ak253z.fsf@maritornes.cs.unb.ca> + <20140924194413.GC20130@odin.tremily.us> + <87a95o22vo.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: multipart/signed; micalg=pgp-sha1; + protocol="application/pgp-signature"; boundary="M38YqGLZlgb6RLPS" +Content-Disposition: inline +In-Reply-To: <87a95o22vo.fsf@maritornes.cs.unb.ca> +OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; + url=http://tremily.us/pubkey.txt +User-Agent: Mutt/1.5.23 (2014-03-12) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20140121; t=1411590581; + bh=kYSfBdBonR8eg4nBni3iKXssNuj9vuT0RqMFO9Z/OlI=; + h=Received:Received:Received:Date:From:To:Subject:Message-ID: + MIME-Version:Content-Type; + b=p4pLQecWWIbiugcWR3BkWlujaCXtydo9pK6jTpWX/e3iOiWcGqmCZhED+8+Ix5H+Z + /qi4DtW0oMJL4BmQcpM0R6JdW90UEvYYoenq3XgK5sRFJAYuwbyscL7ZOBQ2CPTKv3 + kflc54EnehqOaUQIiLJqxr/bOPEanpDcr1eKMTFBln7zEsY8SXbFUJkKAnn1FH6Rh5 + 2W98b+IEJNCpKWYkXcdd2GUvDrbPlTfA78/ZOZRmFHRQXpUuVxN8XbCriTa6ygI/T4 + vZEVQKJYGk+PP5/FwVWzYjwV/padEw1vrF4F3HaI38ifxRwnthafw9Hb+yjl8iksei + tLSL+/PQpzqrw== +Cc: notmuch@notmuchmail.org +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: Wed, 24 Sep 2014 20:29:49 -0000 + + +--M38YqGLZlgb6RLPS +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +On Wed, Sep 24, 2014 at 10:13:31PM +0200, David Bremner wrote: +> W. Trevor King writes: +> I think it would be better to write our own, not because of licensing +> issues, but because the user of the notmuch API won't know what a xapian +> commit is. + +Between version control and databases, I feel like most folks using +libnotmuch will know what a commit is ;). But I don't really mind, so +long as the new docs mention it for non-atomic closes. + +Cheers, +Trevor + +--=20 +This email may be signed or encrypted with GnuPG (http://www.gnupg.org). +For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy + +--M38YqGLZlgb6RLPS +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: OpenPGP digital signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBAgAGBQJUIymxAAoJEG8/JgBt8ol8A/QP/1UcQXx/IAh/TJs6bSUGnX4d +aUe74uZnbykDiAiO/gr5bfx6Ismq5xJ7yH0SBsRLWJ043zmAVcqmDdjjUy1i3brp +ssClrElnK8AzkakQsgYFaL7TyPFmIgDyo6i1DBTn0Ot2itJErCyoedx0p1lwID0J +flZ7XtuqLa8UA87weXf1dLuugGiXIXhzls9+ANq8Iia5xdm23I39k1auHvyzpI1d +bXrVsVedRisMrX4uIbSvehavpIfmTkcd1Nh6EOLcPQzeCD4hRia9Z4OBmXSHK3cu +WCo6o8WUgilhP012JDedD0+ud7XzoRpcCqdrDwJaC2r5+JWjOUavd5aLBCDvf2Jw +Tzqcolf0LFNG4WbgbltcbzzGQk0bEbnoCYYhK0pd0tQXEmfmnnX+mY4r8kFshz+Z +Zhe1IUm636T48camvlWtzrDM26Ee5ElZ8fOHO/MoIYUjp+gaBv2PzWNFRm0MPbAn +X1aG2m+6bmk1UYFPEBOVrO/bgqKkKRuunca0Qe/ZR1Fw4Shegv4KYISYOYzD/51n ++RR9ap0c4XeYU7GDB0SJFQbxIyBXvy/XVmJhhuAjnaS1EugMUxY5aCpruybTxHjx +zquuPEl60b5cgXafFAJKWdRu8l6rTALRDyXx8TBAXDjOKpvHA6w1JoEIUmCP0uav +APq0eevfwyRog1HTSYob +=5C+i +-----END PGP SIGNATURE----- + +--M38YqGLZlgb6RLPS-- -- 2.26.2