mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
lib: work around xapian bug with get_mset(0,0, x)
At least Fedora28 triggers this Xapian bug due to some toolchain change . https://bugzilla.redhat.com/show_bug.cgi?id=1546162 The underlying bug is fixed in xapian commit f92e2a936c1592, and should be fixed in Xapian 1.4.6
This commit is contained in:
parent
15aaa41ce2
commit
64831e8016
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue