-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Boot always loads heads in order (#144)
* update heads on each drain cycle * load heads backwards from last recorded heads * no need to wait for bump in append anymore * add test for appending before indexed nodes are flushed * only track initial batch size and let addRemoteHeads run * no longer need to await initial tick * add test for unindexed local nodes * clear active writers on close * append may be applied in current tick * review by @mafintosh * add more tests for mixed indexed/unindexed nodes * pop heads rather than shift * always set boot record from mem state * only read boot record in open * always return heads from load system info * catchup adds heads to linearizer directly * gc writers after catchup * only track start and end per writer * let _getWriterByKey do system lookups * add test for crosslinked non-indexer nodes * catchup triggers drain to flush indexes * stagger teardown timings
- Loading branch information
1 parent
b0f2e6a
commit bfbd46a
Showing
5 changed files
with
306 additions
and
30 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
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.