File: 1001-fix_bloom_test.patch

package info (click to toggle)
leveldb 1.23-4
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,504 kB
  • sloc: cpp: 20,422; ansic: 623; sh: 69; makefile: 49
file content (19 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (3)
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
@@ -136,7 +136,7 @@ TEST_F(BloomTest, VaryingLengths) {
                    "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