Skip to content

Commit 0036370

Browse files
committed
chore: add corruptSnapshot operation
1 parent 6f99a27 commit 0036370

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/Database/LSMTree/Model/Session.hs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ module Database.LSMTree.Model.Session (
6969
, SnapshotName
7070
, createSnapshot
7171
, openSnapshot
72+
, corruptSnapshot
7273
, deleteSnapshot
7374
, listSnapshots
7475
-- * Multiple writable tables
@@ -590,6 +591,13 @@ openSnapshot label name = do
590591
Just table' ->
591592
newTableWith conf table'
592593

594+
corruptSnapshot ::
595+
(MonadState Model m, MonadError Err m)
596+
=> SnapshotName
597+
-> m ()
598+
corruptSnapshot name = do
599+
undefined
600+
593601
deleteSnapshot ::
594602
(MonadState Model m, MonadError Err m)
595603
=> SnapshotName

0 commit comments

Comments
 (0)