]> git.notmuchmail.org Git - notmuch/commitdiff
Merge branch 'release'
authorDavid Bremner <david@tethera.net>
Fri, 27 Apr 2018 01:47:40 +0000 (22:47 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 27 Apr 2018 01:47:40 +0000 (22:47 -0300)
minimal mset fix, for 0.26.2

NEWS
bindings/python/notmuch/version.py
debian/changelog
lib/query.cc
version

diff --git a/NEWS b/NEWS
index 736d96023e27f9cdef8ea742ab48618e590d9af7..2107209d79b68c069c22b968c31f76ea4fa3164c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,12 @@ Notmuch 0.26.2 (UNRELEASED)
 Library Changes
 ---------------
 
+Work around Xapian bug with `get_mset(0,0, x)`.
+
+  This causes aborts in `_notmuch_query_count_documents` on
+  e.g. Fedora 28.  The underlying bug is fixed in Xapian commit
+  f92e2a936c1592, and will be fixed in Xapian 1.4.6.
+
 Make thread indexing more robust against reference loops
 
   Choose a thread root by date in case of reference loops. Fix a
index f125302e8342986cf5029ff72e49ba6ee173dcef..724b5e54fefee2c637e8e43ebe9004b85d37d811 100644 (file)
@@ -1,3 +1,3 @@
 # this file should be kept in sync with ../../../version
-__VERSION__ = '0.26.1'
+__VERSION__ = '0.26.2'
 SOVERSION = '5'
index 4e6cda69976eaaafe62450fcba1bdbfb7e9900c6..2a05152f5dbc92900d2315e4e532ccb42835f54e 100644 (file)
@@ -1,3 +1,10 @@
+notmuch (0.26.2-1) UNRELEASED; urgency=medium
+
+  * Break reference loops when indexing, fixes INTERNAL_ERROR in "notmuch show"
+  * Don't call get_mset(0,0,X), fixes crash on some gcc8 using distros
+
+ -- David Bremner <bremner@debian.org>  Thu, 26 Apr 2018 22:41:37 -0300
+
 notmuch (0.26.1-1) unstable; urgency=medium
 
   * Bump LIBRARY_MINOR_VERSION to 1, for new functions in 0.26
index d633fa3d908ae08c1e1493b6caa29b8d3570c409..7fdf992de7162a758d6ea869515ad07e15aaa4a6 100644 (file)
@@ -652,9 +652,9 @@ _notmuch_query_count_documents (notmuch_query_t *query, const char *type, unsign
        /*
         * Set the checkatleast parameter to the number of documents
         * in the database to make get_matches_estimated() exact.
-        * Set the max parameter to 0 to avoid fetching documents we will discard.
+        * Set the max parameter to 1 to avoid fetching documents we will discard.
         */
-       mset = enquire.get_mset (0, 0,
+       mset = enquire.get_mset (0, 1,
                                 notmuch->xapian_db->get_doccount ());
 
        count = mset.get_matches_estimated();
diff --git a/version b/version
index 30f6cf8d98ce368a5785a337faee8d4fcf904cee..894542aa24472eb40ad8fb1d2de53724fa80b747 100644 (file)
--- a/version
+++ b/version
@@ -1 +1 @@
-0.26.1
+0.26.2