From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AMreBjxB5l6GDwAA0tVLHw (envelope-from ) for ; Sun, 14 Jun 2020 15:24:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gGCVAjxB5l7RCwAAbx9fmQ (envelope-from ) for ; Sun, 14 Jun 2020 15:24:44 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 71CC9940990 for ; Sun, 14 Jun 2020 15:24:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 1032E6DE13C2; Sun, 14 Jun 2020 08:24:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Db20Cf3KUaEd; Sun, 14 Jun 2020 08:24:36 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 595196DE13B9; Sun, 14 Jun 2020 08:24:33 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 48D956DE13B9 for ; Sun, 14 Jun 2020 08:24:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MrY9AUeXqtd7 for ; Sun, 14 Jun 2020 08:24:29 -0700 (PDT) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by arlo.cworth.org (Postfix) with ESMTPS id 7BD686DE13AE for ; Sun, 14 Jun 2020 08:24:29 -0700 (PDT) Received: by mail-wm1-f43.google.com with SMTP id o8so2756840wmh.4 for ; Sun, 14 Jun 2020 08:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=kRVlVMOU9RqUdRaW8RW/j4ieuLk69rrySL9ykgYmtyU=; b=BXyibfDYB33cRhhPSZ6gMQwMWpv0/HgQZZCEH2zzvHn6APJISN2sWQOa3kPWz5avj7 jTA/N80bSO1WsTDYzdMQXMtF0AadxgTHAdtCA0CUiNCxl6WSARRiXrYWd4mujByqMojs i8UQ2Jf+w/g6cDUhgcxK4adcURJHER8VodmCrYlfDqLCuwCji3myklbugOJlFbqcjQT+ 8IbZPzBmBQdyHTOkHhTV/JUgKZf/c7evM8lYHeH9VRkN61wwTxNoBzF/Sapn2FU3tpiM cb4Xs6KGrAhUidvdzz64SHy3BL53fVPbvVBOHg3a7iZtiw/ELVPRMIAlHwsxkNGrJMx0 jzLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=kRVlVMOU9RqUdRaW8RW/j4ieuLk69rrySL9ykgYmtyU=; b=N5bsZtf2uFCfJg6zibHt4CKrOOIe0tEW3vsYgh+HYKRw569v5ki1meLV8CmSsZUA9E b4ianZIXxwa0UEKukTUyhBEBd/PQ6+HfzQgGtCPXc6ay6vKD21fT6CnsWRHN0GIR8EMA X3nNdGuq8b7QjLjc/Oo/louN92GlieTyA8BCjTs3MKxyE6zuxl2wk8sjaAogubEJPE0u ZfR3Lhg8WSXcniPk85CrPZhLlWafX/u3mzPF9c400Fq06YHOAUrHtupPkkIU1WkdxCaH /CgXQTSphi3/MzwM12EH5SYmKq5weMKP7vMneKzXYKxTdLep7IZwwZ59tRBUAhkOJiQ9 hQng== X-Gm-Message-State: AOAM531s9cK8xNA1wFLaDcUSSCqRZGiVEvWp/UQNueKNkZ4EfuQ5CHpY pALVIktbi7dAOiFIvZuHcfqPiDMU X-Google-Smtp-Source: ABdhPJwGmPSaoe6xoHeByAtWlXkOu0iWJ9GPyJcajxEEYZIFkkGs6RLXaTW0Ywjfo8wSOrZFcarq0w== X-Received: by 2002:a1c:c3d7:: with SMTP id t206mr8817366wmf.69.1592148265888; Sun, 14 Jun 2020 08:24:25 -0700 (PDT) Received: from powell.devork.be (2a02-8388-8480-1180-4c18-fc69-8d8c-22b5.cable.dynamic.v6.surfer.at. [2a02:8388:8480:1180:4c18:fc69:8d8c:22b5]) by smtp.gmail.com with ESMTPSA id k14sm19585206wrq.97.2020.06.14.08.24.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 08:24:25 -0700 (PDT) Received: (nullmailer pid 57323 invoked by uid 1000); Sun, 14 Jun 2020 15:24:24 -0000 From: Floris Bruynooghe To: notmuch@notmuchmail.org Subject: [PATCH] Support aborting the atomic context Date: Sun, 14 Jun 2020 17:23:18 +0200 Message-Id: <20200614152319.57064-1-flub@devork.be> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=BXyibfDY; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 2.49 X-TUID: e82dq+cpLI4y This is an implementation of what was suggested in id:87v9k96xtl.fsf@powell.devork.be It closes the database as that is the only safe way to do this afaik. Currently when the database is closed there are still a bunch of operations which can result in segfaults. Yet the API also promises that some operations are still valid, basically those which only access already previously retrieved information. It would be nice to find a good solution for this in the python bindings, but I don't yet know what this would be.