summaryrefslogtreecommitdiff
path: root/options/configurable.cc
diff options
context:
space:
mode:
authormrambacher <mrambach@gmail.com>2021-04-26 03:12:35 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2021-04-26 03:13:24 -0700
commit6bab3a34e9348896ab3ac1a66ec53717d680512c (patch)
tree13fa9e37f1ef6e4a42e764593248ca85f3e2dd74 /options/configurable.cc
parentcc1c3ee54eace876ad18c39f931e8e5039823930 (diff)
Move RegisterOptions into the Configurable API (#8223)
Summary: As previously coded, a Configurable extension would need access to code not in the public API. This change moves RegisterOptions into the Configurable class and therefore available to public extensions. Pull Request resolved: https://github.com/facebook/rocksdb/pull/8223 Reviewed By: anand1976 Differential Revision: D27960188 Pulled By: mrambacher fbshipit-source-id: ac88b19397183df633902def5b5701b9b65fbf40
Diffstat (limited to 'options/configurable.cc')
-rw-r--r--options/configurable.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/options/configurable.cc b/options/configurable.cc
index aa2b957c4..f425f193c 100644
--- a/options/configurable.cc
+++ b/options/configurable.cc
@@ -17,10 +17,10 @@
namespace ROCKSDB_NAMESPACE {
-void ConfigurableHelper::RegisterOptions(
- Configurable& configurable, const std::string& name, void* opt_ptr,
+void Configurable::RegisterOptions(
+ const std::string& name, void* opt_ptr,
const std::unordered_map<std::string, OptionTypeInfo>* type_map) {
- Configurable::RegisteredOptions opts;
+ RegisteredOptions opts;
opts.name = name;
#ifndef ROCKSDB_LITE
opts.type_map = type_map;
@@ -28,7 +28,7 @@ void ConfigurableHelper::RegisterOptions(
(void)type_map;
#endif // ROCKSDB_LITE
opts.opt_ptr = opt_ptr;
- configurable.options_.emplace_back(opts);
+ options_.emplace_back(opts);
}
//*************************************************************************