aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2018-04-26 22:47:40 -0300
committerDavid Bremner <david@tethera.net>2018-04-26 22:47:40 -0300
commit388edce0b70ddababfe52b7764202a854784545d (patch)
treeed8a939d1ad2359a0d259f4c3b7887b50ae99d73 /lib
parent963ccabe93b0564e6979433f5be34395e9aa8ef1 (diff)
parent15d50a784fc18f0d0ab1d97abe68254463218a10 (diff)
Merge branch 'release'
minimal mset fix, for 0.26.2
Diffstat (limited to 'lib')
-rw-r--r--lib/query.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/query.cc b/lib/query.cc
index d633fa3d..7fdf992d 100644
--- a/lib/query.cc
+++ b/lib/query.cc
@@ -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();