Skip to content

Commit ffaaf11

Browse files
committed
todo: rethrow ErrSnapshotNameInvalid as ErrSessionDirCorrupted
1 parent 36b5f97 commit ffaaf11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Database/LSMTree/Internal.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ listSnapshots sesh = do
13951395
pure $ catMaybes snaps
13961396
where
13971397
checkSnapshot hfs root s = do
1398+
-- TODO: rethrow 'ErrSnapshotNameInvalid' as 'ErrSnapshotDirCorrupted'
13981399
let snap = Paths.toSnapshotName s
13991400
-- check that it is a directory
14001401
b <- FS.doesDirectoryExist hfs

0 commit comments

Comments
 (0)