This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct hamt structure when modifying deep sub-shards (#46)
If you have a shard like: ``` F1 A0 C8myfile ``` And you add a file that causes `C8myfile` to become a subshard, previously you would end up with this: ``` F1 A0 C8 C8 B3myfile 82newfile ``` This PR ensures you get the correct structure: ``` F1 A0 C8 B3myfile 82newfile ``` When we update a shard, we re-create a portion of the shard in order to update the existing structure, this avoids loading the entire shard which could be expensive. Previously we weren't descending into the newly created sub-shard to add the correct portion to the existing shard. Fixes #45
- Loading branch information
1 parent
a389cbf
commit c08a42f
Showing
3 changed files
with
94 additions
and
10 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