diff options
| author | David Bremner <david@tethera.net> | 2018-04-26 22:47:40 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-04-26 22:47:40 -0300 |
| commit | 388edce0b70ddababfe52b7764202a854784545d (patch) | |
| tree | ed8a939d1ad2359a0d259f4c3b7887b50ae99d73 /lib | |
| parent | 963ccabe93b0564e6979433f5be34395e9aa8ef1 (diff) | |
| parent | 15d50a784fc18f0d0ab1d97abe68254463218a10 (diff) | |
Merge branch 'release'
minimal mset fix, for 0.26.2
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/query.cc | 4 |
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(); |
