Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description Rework the locking logic for the ledger DB RAW lock. There are mainly 4 places where locking happens: - background thread that flushes regularly: uses a **write** lock while writing the differences only. - background thread that creates snapshots: holds a **read** lock for the duration of the snapshot - forging loop: **quick read** locking to acquire a ledger db and a value handle to get a snapshot - queries: **quick read** locking to acquire a ledger db and a value handle This should reduce locking issues. There are also some side effects in the PR: - the forging loop is again a `WithEarlyExit` block - getting a snapshot can no longer fail s you provide the chlog and the value handle - new policy function `onDiskShouldFlush` Closes #43
- Loading branch information
Showing
392 changed files
with
6,676 additions
and
5,724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
# GitHub Linguist annotations. | ||
# Hide nix/.stack.nix/*.nix | ||
# That is stuff that is generated by nix-tools stack-to-nix | ||
# https://github.com/github-linguist/linguist/blob/master/docs/overrides.md | ||
|
||
nix/.stack.nix/*.nix linguist-generated=true | ||
.stack-to-nix.cache linguist-generated=true | ||
nix/.stack-pkgs.nix linguist-generated=true | ||
|
||
ouroboros-consensus-byron-test/test/golden/**/* linguist-generated=true | ||
ouroboros-consensus-shelley-test/test/golden/**/* linguist-generated=true | ||
ouroboros-consensus-cardano-test/test/golden/**/* linguist-generated=true | ||
ouroboros-consensus-cardano/golden/**/* linguist-generated=true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.