Remove outdated Xapian remote patch
This commit is contained in:
parent
3e1446f2dd
commit
3d8578ce8e
|
@ -14,9 +14,6 @@ class Xapian(Dependency):
|
||||||
class Source(ReleaseDownload):
|
class Source(ReleaseDownload):
|
||||||
archive = Remotefile('xapian-core-1.4.18.tar.xz',
|
archive = Remotefile('xapian-core-1.4.18.tar.xz',
|
||||||
'196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77')
|
'196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77')
|
||||||
patches = [
|
|
||||||
'xapian_remote.patch'
|
|
||||||
]
|
|
||||||
|
|
||||||
class Builder(MakeBuilder):
|
class Builder(MakeBuilder):
|
||||||
configure_option = "--disable-sse --disable-backend-chert --disable-backend-remote --disable-documentation"
|
configure_option = "--disable-sse --disable-backend-chert --disable-backend-remote --disable-documentation"
|
||||||
|
|
|
@ -1,47 +0,0 @@
|
||||||
diff -ur xapian-core-1.4.14/matcher/multimatch.cc xapian-core-1.4.14.patched/matcher/multimatch.cc
|
|
||||||
--- xapian-core-1.4.14/matcher/multimatch.cc 2019-11-23 08:12:20.000000000 +0100
|
|
||||||
+++ xapian-core-1.4.14.patched/matcher/multimatch.cc 2019-12-08 20:14:24.948683845 +0100
|
|
||||||
@@ -441,9 +441,11 @@
|
|
||||||
// number of matching documents which is higher than the number of
|
|
||||||
// documents it returns (because it wasn't asked for more documents).
|
|
||||||
Xapian::doccount definite_matches_not_seen = 0;
|
|
||||||
+#ifdef XAPIAN_HAS_REMOTE_BACKEND
|
|
||||||
// Track these for calculating uncollapsed_upper_bound for the local.
|
|
||||||
size_t n_remotes = 0;
|
|
||||||
Xapian::doccount remote_uncollapsed_upper_bound = 0;
|
|
||||||
+#endif
|
|
||||||
try {
|
|
||||||
for (size_t i = 0; i != leaves.size(); ++i) {
|
|
||||||
// Pick the highest total subqueries answer amongst the
|
|
||||||
@@ -453,6 +455,7 @@
|
|
||||||
Xapian::termcount total_subqs_i = 0;
|
|
||||||
PostList* pl = leaves[i]->get_postlist(this, &total_subqs_i);
|
|
||||||
total_subqs = max(total_subqs, total_subqs_i);
|
|
||||||
+#ifdef XAPIAN_HAS_REMOTE_BACKEND
|
|
||||||
if (is_remote[i]) {
|
|
||||||
++n_remotes;
|
|
||||||
RemoteSubMatch* rem_match =
|
|
||||||
@@ -469,6 +472,7 @@
|
|
||||||
definite_matches_not_seen -= first + maxitems;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
postlists.push_back(pl);
|
|
||||||
}
|
|
||||||
} catch (...) {
|
|
||||||
@@ -950,6 +954,7 @@
|
|
||||||
Xapian::doccount uncollapsed_lower_bound = matches_lower_bound;
|
|
||||||
Xapian::doccount uncollapsed_upper_bound = matches_upper_bound;
|
|
||||||
Xapian::doccount uncollapsed_estimated = matches_estimated;
|
|
||||||
+#ifdef XAPIAN_HAS_REMOTE_BACKEND
|
|
||||||
if (collapser && n_remotes) {
|
|
||||||
// We need to adjust uncollapsed_upper_bound if there are multiple
|
|
||||||
// shards and some or all are remote. The lower bound and estimate
|
|
||||||
@@ -971,6 +976,7 @@
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
if (items.size() < max_msize) {
|
|
||||||
// We have fewer items in the mset than we tried to get for it, so we
|
|
||||||
// must have all the matches in it.
|
|
Loading…
Reference in New Issue