diff options
Diffstat (limited to 'debian/patches/0001_fix_xapian_overflow.patch')
-rw-r--r-- | debian/patches/0001_fix_xapian_overflow.patch | 13 |
1 files changed, 13 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() |