-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Separate dwrf config definition from impl #3393
Conversation
✅ Deploy Preview for meta-velox canceled.
|
This pull request was exported from Phabricator. Differential Revision: D41658954 |
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.
@HuamengJiang LGTM. Consider add a simple mock test for ConfigBase. Thanks!
velox/common/config/Config.h
Outdated
template <typename T> | ||
ConfigBase& unset(const Entry<T>& entry) { | ||
auto iter = configs_.find(entry.key_); | ||
if (iter != configs_.end()) { |
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.
nit: you could just erase directly?
Summary: Pull Request resolved: facebookincubator#3393 Separate the config definition from the actual mechanism. Rename the impl class as `ConfigBase` and concrete config classes will derive `ConfigBase<ConcreteConfig>` like `dwrf::Config` and just define all the entries. Reviewed By: xiaoxmeng Differential Revision: D41658954 fbshipit-source-id: 3a5f8770fc42b3725228a870ef0146608b544c00
2a4b834
to
efc22fb
Compare
This pull request was exported from Phabricator. Differential Revision: D41658954 |
Summary: Pull Request resolved: facebookincubator#3393 Separate the config definition from the actual mechanism. Rename the impl class as `ConfigBase` and concrete config classes will derive `ConfigBase<ConcreteConfig>` like `dwrf::Config` and just define all the entries. Reviewed By: xiaoxmeng Differential Revision: D41658954 fbshipit-source-id: 989600a32349fc07a316b3ab8d5eacc76984881d
efc22fb
to
c046065
Compare
This pull request was exported from Phabricator. Differential Revision: D41658954 |
Differential Revision: D41658954