Skip to content

Commit 36f6655

Browse files
committed
Revert "LedgerDB.V2: make in-memory LedgerTablesHandle.close a no-op"
This reverts commit 7900088. Without the fix in the preceding commit, this would cause test failures, see cabal run ouroboros-consensus-diffusion:mock-test -- \ --quickcheck-replay="(SMGen 15972426649573867634 4412022096428701771,88)" \ -p '/Praos.simple convergence/'
1 parent 06db287 commit 36f6655

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,7 @@ newInMemoryLedgerTablesHandle tracer someFS@(SomeHasFS hasFS) l = do
9696
pure
9797
LedgerTablesHandle
9898
{ close = do
99-
-- Temporarily a no-op until
100-
-- https://github.com/IntersectMBO/ouroboros-consensus/issues/1551 has
101-
-- been fixed.
102-
103-
-- atomically $ writeTVar tv LedgerTablesHandleClosed
99+
atomically $ writeTVar tv LedgerTablesHandleClosed
104100
traceWith tracer V2.TraceLedgerTablesHandleClose
105101
, duplicate = do
106102
hs <- readTVarIO tv

0 commit comments

Comments
 (0)