Package: leveldb / 1.17-1

1001-fix_bloom_test.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Subject: Increase false positive rate to deal with testing on big-endians.
Bug: http://code.google.com/p/leveldb/issues/detail?id=84
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677645
Bug-Ubuntu: https://launchpad.net/bugs/1021560
---
 util/bloom_test.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- leveldb.orig/util/bloom_test.cc
+++ leveldb/util/bloom_test.cc
@@ -141,7 +141,7 @@ TEST(BloomTest, VaryingLengths) {
       fprintf(stderr, "False positives: %5.2f%% @ length = %6d ; bytes = %6d\n",
               rate*100.0, length, static_cast<int>(FilterSize()));
     }
-    ASSERT_LE(rate, 0.02);   // Must not be over 2%
+    ASSERT_LE(rate, 0.03);   // Must not be over 3%
     if (rate > 0.0125) mediocre_filters++;  // Allowed, but not too often
     else good_filters++;
   }