We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2fac97 commit d181bb5Copy full SHA for d181bb5
1 file changed
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2.hs
@@ -385,6 +385,9 @@ implTryTakeSnapshot snapManager env copyBlocks getRandomDelay = do
385
386
for_ handles $ \(_, h) -> do
387
Monad.void $ takeSnapshot snapManager Nothing h
388
+ Monad.void $ close . tables $ h
389
+ -- we don't bracket around the handles because it is tedious. An exception that may occur
390
+ -- before we close them would bring the whole cardano-node down anyway.
391
392
atomically $ writeTVar (ldbLastSnapshotRequestedAt env) (Just $! snapshotRequestTime)
393
Monad.void $ trimSnapshots snapManager (ldbSnapshotPolicy env)
0 commit comments