File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
src/Database/LSMTree/Internal Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ search k IndexCompact{..} =
418418 bitIndexFromToRev (BoundInclusive 0 ) (BoundInclusive i) (Bit False ) icClashes
419419 -- The TB map is consulted to find the closest key smaller than k.
420420 ! i2 = maybe (PageNo 0 ) snd $
421- Map. lookupLE (unsafeNoAssertMakeUnslicedKey k) icTieBreaker
421+ Map. lookupLE (makeUnslicedKey k) icTieBreaker
422422 -- If i2 < i1, then it means the clashing pages were all just part
423423 -- of the same larger-than-page value. Entries are only included
424424 -- in the TB map if the clash was a *proper* clash.
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ module Database.LSMTree.Internal.Unsliced (
1111 , makeUnslicedKey
1212 , unsafeMakeUnslicedKey
1313 , fromUnslicedKey
14- , unsafeNoAssertMakeUnslicedKey
1514 ) where
1615
1716import Control.DeepSeq (NFData )
@@ -43,9 +42,6 @@ makeUnsliced bytes
4342unsafeMakeUnsliced :: RawBytes -> Unsliced RawBytes
4443unsafeMakeUnsliced bytes = assert (precondition bytes) (Unsliced (getByteArray bytes))
4544
46- unsafeNoAssertMakeUnsliced :: RawBytes -> Unsliced RawBytes
47- unsafeNoAssertMakeUnsliced bytes = Unsliced (getByteArray bytes)
48-
4945fromUnsliced :: Unsliced RawBytes -> RawBytes
5046fromUnsliced (Unsliced ba) = RawBytes (mkPrimVector 0 (sizeofByteArray ba) ba)
5147
@@ -65,9 +61,6 @@ makeUnslicedKey (SerialisedKey rb) = from (makeUnsliced rb)
6561unsafeMakeUnslicedKey :: SerialisedKey -> Unsliced SerialisedKey
6662unsafeMakeUnslicedKey (SerialisedKey rb) = from (unsafeMakeUnsliced rb)
6763
68- unsafeNoAssertMakeUnslicedKey :: SerialisedKey -> Unsliced SerialisedKey
69- unsafeNoAssertMakeUnslicedKey (SerialisedKey rb) = from (unsafeNoAssertMakeUnsliced rb)
70-
7164fromUnslicedKey :: Unsliced SerialisedKey -> SerialisedKey
7265fromUnslicedKey x = SerialisedKey (fromUnsliced (to x))
7366
You can’t perform that action at this time.
0 commit comments