-
Notifications
You must be signed in to change notification settings - Fork 36.6k
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
[WIP] [kernelheaders 1/n] Cleave LevelDB headers from our header tree #24676
[WIP] [kernelheaders 1/n] Cleave LevelDB headers from our header tree #24676
Conversation
Remove need to ship leveldb/write_batch.h
cf1701a
to
47ccacd
Compare
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Concept ACK. |
🐙 This pull request conflicts with the target branch and needs rebase. Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft". |
Closing, @TheCharlatan will follow up with a PR that's simpler |
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.
Excente
This PR is not based on anything other than
master
.We
#include
LevelDB headers indbwrapper.h
, which means that anything that#include
's or transitively#include
'sdbwrapper.h
will also pull in the LevelDB headers:bitcoin/src/dbwrapper.h
Lines 16 to 17 in 2f0f056
This PR's changes allow us to remove these LevelDB header
#include
's indbwrapper.h
and have them be indbwrapper.cpp
instead. We achieve this mainly by:doFoo
's) to:LevelDB
-specific code out of the header,LevelDB
-specific member variables out of the headerCoincidentally, this PR also makes obfuscation an implementation detail of the database, as described in this code comment:
bitcoin/src/dbwrapper.h
Lines 39 to 42 in 2f0f056