Skip to content

Commit 3fca3f5

Browse files
committed
Use new resource-registry which cancels threads before closing registries
1 parent f5629c4 commit 3fca3f5

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

cabal.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ if impl (ghc >= 9.10)
5858
source-repository-package
5959
type: git
6060
location: https://github.com/IntersectMBO/io-classes-extra
61-
tag: bdef43a0660c7af2a0c1f4021228ff4e9ac5af71
62-
--sha256: sha256-1if7Gt1dDx2Ryj9iXTbb6SlLA+nOLs6R3pH6TUAkM1o=
61+
tag: 587323e122b9427607e3b210d67779238897f9e4
62+
--sha256: sha256-xWf4MeCcFQPGw2aiSyJUkCZ482T8lUEIVxoK/jHgezs=
6363
subdir:
6464
resource-registry
6565

ouroboros-consensus-diffusion/ouroboros-consensus-diffusion.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ library
9595
ouroboros-network-framework ^>=0.19,
9696
ouroboros-network-protocols ^>=0.15,
9797
random,
98-
resource-registry ^>=0.1,
98+
resource-registry ^>=0.2,
9999
safe-wild-cards ^>=1.0,
100100
serialise ^>=0.2,
101101
text,

ouroboros-consensus-diffusion/src/unstable-diffusion-testlib/Test/ThreadNet/Network.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ runThreadNetwork
11581158
mempool
11591159
txs0
11601160

1161-
void $ allocate registry (\_ -> pure threadCrucialTxs) cancelThread
1161+
void $ allocateThread registry (\_ -> pure threadCrucialTxs)
11621162

11631163
forkTxProducer
11641164
coreNodeId

ouroboros-consensus/ouroboros-consensus.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ library
344344
psqueues ^>=0.2.3,
345345
quiet ^>=0.2,
346346
rawlock ^>=0.1.1,
347-
resource-registry ^>=0.1,
347+
resource-registry ^>=0.2,
348348
semialign >=1.1,
349349
serialise ^>=0.2,
350350
singletons,
@@ -393,7 +393,7 @@ library ouroboros-consensus-lsm
393393
ouroboros-consensus,
394394
primitive,
395395
random,
396-
resource-registry ^>=0.1,
396+
resource-registry ^>=0.2,
397397
serialise ^>=0.2,
398398
streaming,
399399
text,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ implForkerCommit env = do
176176
closeLedgerSeq (LedgerSeq toCloseForker)
177177

178178
-- All the other remaining handles are transferred to the LedgerDB registry
179-
keys <- ingestRegistry foeResourceRegistry foeLedgerDbRegistry
179+
keys <- transferRegistry foeResourceRegistry foeLedgerDbRegistry
180180
mapM_ (\(k, v) -> transfer (tables v) k) $ zip keys (AS.toOldestFirst toKeepTip)
181181

182182
pure ((transferCommitted, ldbToClose), LedgerSeq newdb)

0 commit comments

Comments
 (0)