-
Notifications
You must be signed in to change notification settings - Fork 46
feat(ledger): support LMDB as a blockstore database backend #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
17070a7
feat(ledger): lmdb wip
dnut 427fce7
feat(ledger): wip lmdb
dnut f1fd0cf
feat(ledger): write last lmdb methods, but still doesn't compile
dnut 3fc08c7
feat(ledger): lmdb compiles. tests fail
dnut 3f0fe86
feat(ledger): get all the tests working for lmdb and add some more
dnut 4c9a312
fix(ledger): remove unused
dnut 8be72a0
fix(ledger): misc bugs found when testing as blockstore db
dnut d03475c
feat(ledger): customizable blockstore database backend
dnut d4682f1
fix(ledger): hashmapdb compile error when used as blockstore database
dnut e1a261c
test(ledger): migrate new database tests to normal zig tests
dnut 6f3bb7b
refactor(build.zig): use switch instead of ifs for database dependency
dnut 876eb2d
refactor(ledger): extract out import to top
dnut 79427fc
refactor(ledger): remove c pointers from lmdb
dnut 1c22591
refactor(ledger): use flags from c import
dnut cd49700
fix(ledger): lmdb error conversion needs platform specific logic
dnut c01b74f
refactor(ledger): remove unnecessary ptrCast from lmdb
dnut 54975b2
refactor(ledger): rename lmdb "result" to "maybeError"
dnut 11cd6cc
fix(ledger): strings should be 0-terminated
dnut e9d84f9
docs(ledger): document txn-based allocator for lmdb
dnut 2ed42a0
refactor(ledger): rename ret to returnOutput and add docs
dnut 038f9e5
fix(ledger): reusing hashmap write batch after execution is a bug, an…
dnut 1808660
fix(ledger): leak in purgeSlots
dnut 8add233
fix(ledger): serializeAlloc for raw bytes should not use bincode
dnut dbe786a
fix(ledger): deinit shred bytes in test
dnut e1d5fdc
fix(ledger): write batch copy/pointer mismanagement
dnut 4710c13
fix(ledger): memory leaks in tests
dnut 25bd099
ci: explicitly test ledger databases in github workflow, and don't re…
dnut ac6ba87
fix(ledger): memory bugs in the shred inserter
dnut 385aa53
test(ledger): improve deleteRange test
dnut fd14806
fix(ledger): close lmdb env on deinit, and don't abort write txns
dnut 42e7608
test(ledger): run testDatabase(hashmap) tests no matter what
dnut 53a9ea9
fix(ledger): allocator misuse in BytesRef
dnut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.