File tree Expand file tree Collapse file tree 3 files changed +0
-8
lines changed
src/Database/LSMTree/Internal
test/Test/Database/LSMTree/Internal/Snapshot Expand file tree Collapse file tree 3 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ data RunBloomFilterAlloc =
8686instance NFData RunBloomFilterAlloc where
8787 rnf (RunAllocFixed a) = rnf a
8888 rnf (RunAllocRequestFPR a) = rnf a
89- rnf (RunAllocMonkey a) = rnf a
9089
9190-- | @'new' nentries@ starts an incremental run construction.
9291--
Original file line number Diff line number Diff line change @@ -421,10 +421,6 @@ instance Encode RunBloomFilterAlloc where
421421 encodeListLen 2
422422 <> encodeWord 1
423423 <> encodeDouble fpr
424- encode (RunAllocMonkey bits) =
425- encodeListLen 2
426- <> encodeWord 2
427- <> encodeWord64 bits
428424
429425instance DecodeVersioned RunBloomFilterAlloc where
430426 decodeVersioned V0 = do
@@ -433,7 +429,6 @@ instance DecodeVersioned RunBloomFilterAlloc where
433429 case (n, tag) of
434430 (2 , 0 ) -> RunAllocFixed <$> decodeWord64
435431 (2 , 1 ) -> RunAllocRequestFPR <$> decodeDouble
436- (2 , 2 ) -> RunAllocMonkey <$> decodeWord64
437432 _ -> fail (" [RunBloomFilterAlloc] Unexpected combination of list length and tag: " <> show (n, tag))
438433
439434-- BloomFilterAlloc
Original file line number Diff line number Diff line change @@ -356,11 +356,9 @@ instance Arbitrary RunBloomFilterAlloc where
356356 arbitrary = oneof [
357357 RunAllocFixed <$> arbitrary
358358 , RunAllocRequestFPR <$> arbitrary
359- , RunAllocMonkey <$> arbitrary
360359 ]
361360 shrink (RunAllocFixed x) = RunAllocFixed <$> shrink x
362361 shrink (RunAllocRequestFPR x) = RunAllocRequestFPR <$> shrink x
363- shrink (RunAllocMonkey x) = RunAllocMonkey <$> shrink x
364362
365363{- ------------------------------------------------------------------------------
366364 Show
You can’t perform that action at this time.
0 commit comments