-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is achieved in two ways: First, finish making the current height "unreadable". Second, make the lowest height in the cache also "unreadable". We kept the amount of accessible previous blocks the same by increasing the cache's capacity by one. The lowest height's situation is a hypothetical issue that could come up if an iterator is being generated for the lowest height in the cache when a Commit starts, given that it evicts the lowest height. By only returning information (aka "Reading from") heights that cannot be written to, we eliminate this class of issue without needing locks or other synchronization mechanisms.
- Loading branch information
Showing
3 changed files
with
10 additions
and
13 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
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
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