Skip to content

Commit bd0be9c

Browse files
committed
Undo HEAD~1
1 parent f94e7db commit bd0be9c

File tree

1 file changed

+1
-4
lines changed
  • ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2

1 file changed

+1
-4
lines changed

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2/LSM.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ import Data.Void
7676
import Database.LSMTree (Session, Table)
7777
import qualified Database.LSMTree as LSM
7878
import qualified Database.LSMTree.Internal.Types as LSM
79-
-- import qualified Debug.Trace as Debug
8079
import GHC.Generics
8180
import NoThunks.Class
8281
import Ouroboros.Consensus.Block
@@ -226,9 +225,7 @@ newLSMLedgerTablesHandle tracer rr session (resKey, t0) = do
226225
, pushDiffs = const (implPushDiffs tv)
227226
, takeHandleSnapshot = \_ snapshotName -> guardClosed tv $
228227
\table -> do
229-
exists <- LSM.doesSnapshotExist session (fromString snapshotName)
230-
-- Debug.traceShowM =<< LSM.listSnapshots session
231-
Monad.when (not exists) $ LSM.saveSnapshot (fromString snapshotName) "UTxO table" table
228+
LSM.saveSnapshot (fromString snapshotName) "UTxO table" table
232229
pure Nothing
233230
, tablesSize = pure Nothing
234231
}

0 commit comments

Comments
 (0)