diff options
author | mrambacher <mrambach@gmail.com> | 2020-04-21 17:35:28 -0700 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2020-04-21 17:38:17 -0700 |
commit | 4cbc19d2a1da1a44775f27c2d167a0d8da0fd9f5 (patch) | |
tree | caf38e037579c020b25776b63672ec3dca27b4b5 /examples | |
parent | c1ccd6b6af96365875b378cf495b050097f6a1ad (diff) |
Add a ConfigOptions for use in comparing objects and converting to/from strings (#6389)
Summary:
The methods in convenience.h are used to compare/convert objects to/from strings. There is a mishmash of parameters in use here with more needed in the future. This PR replaces those parameters with a single structure.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/6389
Reviewed By: siying
Differential Revision: D21163707
Pulled By: zhichao-cao
fbshipit-source-id: f807b4cc7e2b0af3871536b69546b2604dfa81bd
Diffstat (limited to 'examples')
-rw-r--r-- | examples/options_file_example.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/options_file_example.cc b/examples/options_file_example.cc index e6a1d0e9a..30051d8d5 100644 --- a/examples/options_file_example.cc +++ b/examples/options_file_example.cc @@ -79,7 +79,8 @@ int main() { // Load the options file. DBOptions loaded_db_opt; std::vector<ColumnFamilyDescriptor> loaded_cf_descs; - s = LoadLatestOptions(kDBPath, Env::Default(), &loaded_db_opt, + ConfigOptions config_options; + s = LoadLatestOptions(config_options, kDBPath, &loaded_db_opt, &loaded_cf_descs); assert(s.ok()); assert(loaded_db_opt.create_if_missing == db_opt.create_if_missing); |