-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add storage api #64
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
base: prestwich/reth-1.10
Are you sure you want to change the base?
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. This stack of pull requests is managed by Graphite. Learn more about stacking. |
7152b93 to
67c6c16
Compare
crates/storage/src/hot/db.rs
Outdated
| if self.write_locked.swap(true, Ordering::AcqRel) { | ||
| return Err(HotKvError::WriteLocked); | ||
| } | ||
| self.inner.writer().map(Some).map(|tx| WriteGuard { tx, db: self }) |
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.
If this fails, no WriteGuard is created, which is the only way self.write_locked is set back to false. Won't this mean an error when calling writer will erroneously lock writes forever?
|
don't review this PR yet |
8edb0f6 to
bfab627
Compare

One day's work on re-architecting reth DB with a hot/cold model