Skip to content
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

bug(insert): 🐛 double insertion results in BonsaiStorageError #19

Closed
Trantorian1 opened this issue Mar 8, 2024 · 1 comment
Closed
Assignees

Comments

@Trantorian1
Copy link
Contributor

Bug Report

Bonsai-trie version: 322af3f

Current behavior:

Double insertion of the same key into a bonsai db without calling commit between insertions results in BonsaiStorageError::Trie("Couldn't fetch node in db").

According to @AurelienFT this could be due to the db trying to access the key to replace it while it hasn't yet been committed to storage.

Expected behavior:

Bonsai db should be able to handle double insertions without having to commit to storage.

Steps to reproduce:

Perform double insertion of the same key into a bonsai db in a single commit.

Related code:

The function currently crashing: preload_node_subtree

@AurelienFT AurelienFT self-assigned this Mar 9, 2024
@AurelienFT
Copy link
Collaborator

Fixed by #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants