Skip to content

Commit 0e3012f

Browse files
committed
Disable Monkey-style bloom filter allocation
1 parent dc0ddaf commit 0e3012f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Database/LSMTree/Internal/Config.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ bloomFilterAllocForLevel conf (LevelNo l) =
262262
(fromIntegralChecked n)
263263
(fromIntegralChecked sr)
264264
levelCount
265-
in case allocPerLevel !? (l - 1) of
265+
in -- TODO: monkey-style allocation does not currently work as
266+
-- expected, so it is disabled for now.
267+
error "boomFilterAllocForLevel: monkey allocation temporarily disabled" $
268+
case allocPerLevel !? (l - 1) of
266269
-- Default to an empty bloom filter in case the level wasn't
267270
-- accounted for. See 'AllocMonkey'.
268271
Nothing -> RunAllocMonkey 0

0 commit comments

Comments
 (0)