We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ldbOpenHandlesLock
1 parent 97792c2 commit 19faf20Copy full SHA for 19faf20
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2.hs
@@ -458,6 +458,12 @@ data LedgerDBEnv m l blk = LedgerDBEnv
458
, ldbResolveBlock :: !(ResolveBlock m blk)
459
, ldbQueryBatchSize :: !QueryBatchSize
460
, ldbOpenHandlesLock :: !(RAWLock m LDBLock)
461
+ -- ^ While holding a read lock (at least), all handles in the 'ldbSeq' are
462
+ -- guaranteed to be open. During this time, the handle can be duplicated and
463
+ -- then be used independently, see 'getStateRef' and 'withStateRef'.
464
+ --
465
+ -- Therefore, closing any handles which were previously in 'ldbSeq' requires
466
+ -- acquiring a write lock.
467
}
468
deriving Generic
469
0 commit comments