Add transactions and support recovery from WAL#17
Draft
DavisRayM wants to merge 27 commits into
Draft
Conversation
This changes the header significantly; reserving 64 bytes at the start of all `Page`s in the file. The header is now different different on the type of `Page`: - Meta Page: The first page of any storage file. Contains information about the storage file (global variabls and such) - Leaf & Internal Page: These are going to be B+ or Blink Tree Nodes
This splits out the table and meta page handling from the `Page`, leaving it as simple as possible. This way the accessed API is actually controlled and you don't have to worry about the layout or accessing something that doesn't exist for that page.
967f0f7 to
296e05a
Compare
The `MutationScope` is for primarily tracking what exactly changed in a page. It provides the same API as a normal page allowing it to be easily substituted in place of a real page, report/inspect the change and the re-apply.
fa53184 to
ae2ec3a
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Links