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.
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
fix: remove mutex in prefixdb #239
fix: remove mutex in prefixdb #239
Changes from 11 commits
5c9bfe8
a0ff309
636377b
0155808
973a74a
34ca0e7
d81b67b
4c9b066
0566540
f531a3f
cc11706
417a583
3214560
fd0bb3d
31c47b6
835d8fd
cb000ee
c6d827f
b78aed6
e2c3c4e
d56e038
84a67af
72c47a4
0931c90
5c81bf8
11fa71a
d57bb1f
8e4e401
602ef89
d4bb034
2640477
d75f0c0
4355c2a
f330226
230b7cc
cdc2374
e74373d
1ab7644
ea504e8
7d4b2c7
f39f7bb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't help if we use a mock database here—this needs to exercise the real database implementation. I suggest making this a parameter, e.g.,
Then we can use it to write more specific tests against the individual implementations, e.g.,
or words to that effect. Exercising the MemDB is fine, but doesn't tell us much about the concurrency safety of the "real" backends.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gotcha!
OK, will address this tomorrow, and thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we test prefix_db with many db implementations, like some kind of table-driven test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think that is what he means <3