Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2009-01-14 21:58:49 (GMT)
committer Jonas Smedegaard <dr@jones.dk>2009-01-14 21:58:49 (GMT)
commit381e549895152e8282f840c012d9f056d56a5ea2 (patch)
treead0f6d470fa26aafcdbbcefe53603c42f6d4bf57
parentd79977b9409946e581e48616f5f2e50ebc058249 (diff)
Add patch 0001 to fix Xapian overflow.
-rw-r--r--debian/patches/0001_fix_xapian_overflow.patch13
-rw-r--r--debian/patches/series1
2 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/0001_fix_xapian_overflow.patch b/debian/patches/0001_fix_xapian_overflow.patch
new file mode 100644
index 0000000..f5b1f90
--- /dev/null
+++ b/debian/patches/0001_fix_xapian_overflow.patch
@@ -0,0 +1,13 @@
+diff --git a/secore/searchconnection.py b/secore/searchconnection.py
+index 79fa509..4f77941 100644
+--- a/secore/searchconnection.py
++++ b/secore/searchconnection.py
+@@ -607,7 +607,7 @@ class SearchConnection(object):
+ # Repeat the search until we don't get a DatabaseModifiedError
+ while True:
+ try:
+- mset = enq.get_mset(startrank, maxitems, checkatleast)
++ mset = enq.get_mset(startrank, maxitems, min(0x7FFFFFFF, checkatleast))
+ break
+ except _xapian.DatabaseModifiedError, e:
+ self.reopen()
diff --git a/debian/patches/series b/debian/patches/series
index 64e4de0..759e3e5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+0001_fix_xapian_overflow.patch
1002_avoid_try-except-finally.patch
1003_avoid_with_statement.patch
1004_avoid_queue_hints.patch