1 Return-Path: <teythoon@jade-hamburg.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 72EA5431FD4
\r
6 for <notmuch@notmuchmail.org>; Wed, 29 Feb 2012 01:19:29 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id d31O1MgM-jYF for <notmuch@notmuchmail.org>;
\r
16 Wed, 29 Feb 2012 01:19:28 -0800 (PST)
\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id E5AEF431FAF
\r
21 for <notmuch@notmuchmail.org>; Wed, 29 Feb 2012 01:19:27 -0800 (PST)
\r
22 Received: from mail.jade-hamburg.de (unknown [85.183.11.228])
\r
23 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
24 (No client certificate requested)
\r
25 by mail.cryptobitch.de (Postfix) with ESMTPSA id 173ED4F2EBE
\r
26 for <notmuch@notmuchmail.org>; Wed, 29 Feb 2012 10:19:26 +0100 (CET)
\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)
\r
28 id F1A6EDF2A7; Wed, 29 Feb 2012 10:19:23 +0100 (CET)
\r
29 Received: from thinkbox.jade-hamburg.de (unknown [10.1.1.153])
\r
30 (using TLSv1 with cipher AES256-SHA (256/256 bits))
\r
31 (No client certificate requested) (Authenticated sender: teythoon)
\r
32 by mail.jade-hamburg.de (Postfix) with ESMTPSA id 49CE7DF2A2
\r
33 for <notmuch@notmuchmail.org>; Wed, 29 Feb 2012 10:19:23 +0100 (CET)
\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)
\r
35 (envelope-from <teythoon@thinkbox.jade-hamburg.de>)
\r
37 for notmuch@notmuchmail.org; Wed, 29 Feb 2012 10:19:22 +0100
\r
38 From: Justus Winter <4winter@informatik.uni-hamburg.de>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: fix notmuch_database_close
\r
41 Date: Wed, 29 Feb 2012 10:19:16 +0100
\r
43 <1330507157-22859-1-git-send-email-4winter@informatik.uni-hamburg.de>
\r
44 X-Mailer: git-send-email 1.7.9
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Wed, 29 Feb 2012 09:19:29 -0000
\r
59 Pazz mentioned a problem wrt reopening a notmuch database immediately
\r
60 after it has been closed. The problem can be reproduced with this test
\r
67 db_path = os.path.expanduser('~/Maildir')
\r
70 with notmuch.Database(db_path, mode=notmuch.Database.MODE.READ_WRITE) as db:
\r
71 query = db.create_query('tag:inbox AND NOT tag:killed')
\r
72 print(len(list(query.search_messages())))
\r
75 Without this fix, the second loop iteration fails because the xapian
\r
76 lock is not released in time.
\r