-
Notifications
You must be signed in to change notification settings - Fork 253
keystore: remove mutex #1147
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
keystore: remove mutex #1147
Conversation
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.
Before I complete the review, I want to discuss the large comment I left pertaining to async behavior.
|
Since the supplied datastore is considered to be thread safe, we can safely remove the mutex without running all datastore operations sequentially in a single go routine, like implemented in this PR. EDIT: A mutex is still required in the |
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 had a general look. Looks fine as an intermediary step before removing the blocking operations I think.
74670b4 to
bb7a2d4
Compare
bb7a2d4 to
38a707a
Compare
c45a22e to
bfc6664
Compare
* provider: ResettableKeyStore * keystore: remove mutex * use datastore namespace * don't sync to write to altDs * simplify put * deduplicate operation execution code
* provider: ResettableKeyStore * keystore: remove mutex * use datastore namespace * don't sync to write to altDs * simplify put * deduplicate operation execution code
* provider: ResettableKeyStore * keystore: remove mutex * use datastore namespace * don't sync to write to altDs * simplify put * deduplicate operation execution code
* provider: ResettableKeyStore * keystore: remove mutex * use datastore namespace * don't sync to write to altDs * simplify put * deduplicate operation execution code
* provider: ResettableKeyStore * keystore: remove mutex * use datastore namespace * don't sync to write to altDs * simplify put * deduplicate operation execution code
Based on #1146
Part of #1095
Remove lock contention in
KeyStoreby having a go routine managing accesses to the underneathdatastore.This adds quite some complexity :(
cc: @gammazero @hsanjuan