Skip to content

Commit f0e00a8

Browse files
Remove TODO on FilePointer
Co-authored-by: Recursion Ninja <[email protected]>
1 parent 72c438c commit f0e00a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Database/LSMTree/Internal/WriteBufferBlobs.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,10 @@ mkWeakBlobRef (DeRef WriteBufferBlobs {blobFile}) blobspan =
197197

198198

199199
-- | A mutable file offset, suitable to share between threads.
200+
--
201+
-- This pointer is limited to 31-bit file offsets on 32-bit systems. This should
202+
-- be a sufficiently large limit that we never reach it in practice.
200203
newtype FilePointer m = FilePointer (PrimVar (PrimState m) Int)
201-
--TODO: this would be better as Word64
202-
-- this will limit to 31bit file sizes on 32bit arches
203204

204205
instance NFData (FilePointer m) where
205206
rnf (FilePointer var) = var `seq` ()

0 commit comments

Comments
 (0)