-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the Cached index using TVars
In the past some nodes have been crashing because of a misalingment in the data in the Cached Index. Ensuring that the changes are atomic via `stm` seems to solve the problem. In terms of logic, this PR only moves the modifications into `atomically` blocks, the overall logic is the same.
- Loading branch information
Showing
2 changed files
with
35 additions
and
38 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
### Non-Breaking | ||
|
||
- Cached index is now based on `TVar`s instead of `MVar`s ensuring proper updates | ||
to the current chunk cached information. |
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