1 Return-Path: <novalazy@gmail.com>
\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 30A37431FDF
\r
6 for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 06:00:36 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id hYVotLvjUQpD for <notmuch@notmuchmail.org>;
\r
17 Wed, 16 Apr 2014 06:00:31 -0700 (PDT)
\r
18 Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com
\r
19 [209.85.160.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 4425F431FC3
\r
22 for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 06:00:04 -0700 (PDT)
\r
23 Received: by mail-pb0-f45.google.com with SMTP id uo5so10857388pbc.32
\r
24 for <notmuch@notmuchmail.org>; Wed, 16 Apr 2014 06:00:03 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
27 bh=WeZluKs7E6JIW5mp7eXSpjsvbr9qaRVVzX0ecvdBx1M=;
\r
28 b=KLyVaXJ9evOWznxjRIl+XI2M2GNFrC1HfZo2uxnQa++/a0KYKxi/1fZU226SclX0nf
\r
29 k7Xr4a6cjzTMwnmrd5SIvw3kpk0HzLZp+pFl+X3falQNdXFsNqERCS86Gxm2QPUCYdhb
\r
30 e5Xb/1EU7WOtOyzVCzcDZ2HBwfdyCS0q6KJ7rSQgDv5juDgY6Lqx6nIe8rUztUAy9cTO
\r
31 YClYSDe8ydxTmPBzY3uWy9glA8UFMMv/R3ohD+HRdW3sS+U5SCMsSGMezMhEQIVm6mMl
\r
32 rPNOnRSMZyJ3zgkpJ4fNIo/3/tIxKNUJnkHH4aqmzsIvVCk23LTiATJHVdPbJllt8GVb
\r
34 X-Received: by 10.68.220.137 with SMTP id pw9mr8449922pbc.24.1397653203552;
\r
35 Wed, 16 Apr 2014 06:00:03 -0700 (PDT)
\r
36 Received: from localhost (215.42.233.220.static.exetel.com.au.
\r
37 [220.233.42.215]) by mx.google.com with ESMTPSA id
\r
38 te2sm110970365pac.25.2014.04.16.06.00.01 for <multiple recipients>
\r
39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
40 Wed, 16 Apr 2014 06:00:03 -0700 (PDT)
\r
41 From: Peter Wang <novalazy@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH v2 05/10] ruby: handle return status of database close
\r
44 Date: Wed, 16 Apr 2014 22:59:20 +1000
\r
45 Message-Id: <1397653165-15620-6-git-send-email-novalazy@gmail.com>
\r
46 X-Mailer: git-send-email 1.8.4
\r
47 In-Reply-To: <1397653165-15620-1-git-send-email-novalazy@gmail.com>
\r
48 References: <1397653165-15620-1-git-send-email-novalazy@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Wed, 16 Apr 2014 13:00:36 -0000
\r
63 Throw an exception if notmuch_database_destroy fails.
\r
65 bindings/ruby/database.c | 4 +++-
\r
66 1 file changed, 3 insertions(+), 1 deletion(-)
\r
68 diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c
\r
69 index e84f726..c03d701 100644
\r
70 --- a/bindings/ruby/database.c
\r
71 +++ b/bindings/ruby/database.c
\r
72 @@ -113,11 +113,13 @@ notmuch_rb_database_open (int argc, VALUE *argv, VALUE klass)
\r
74 notmuch_rb_database_close (VALUE self)
\r
76 + notmuch_status_t ret;
\r
77 notmuch_database_t *db;
\r
79 Data_Get_Notmuch_Database (self, db);
\r
80 - notmuch_database_destroy (db);
\r
81 + ret = notmuch_database_destroy (db);
\r
82 DATA_PTR (self) = NULL;
\r
83 + notmuch_rb_status_raise (ret);
\r