Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

disable undo_stack by default, set tested typical rocksdb configurati… #10547

Merged
merged 3 commits into from
Jul 20, 2021

Conversation

linhuang-blockone
Copy link
Contributor

…on parameters if options file is not provided, and gives detailed warning if deprecated rdb-threads and rdb-max-files are used

Change Description

For the convenience of users and less prone to make mistakes, undo_stack is disabled by default,
and --enable-undo-stack is required to enable it; if options file is not provided, typical rocksdb configuration
parameters will be used; If --rdb-threads and --rdb-max-files are used, rodeos will not start and detailed warning is given.

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

…on parameters if options file is not provided, and gives detailed warning if deprecated rdb-threads and rdb-max-files are used
@@ -302,7 +302,7 @@ void cloner_plugin::set_program_options(options_description& cli, options_descri
op("filter-name", bpo::value<std::string>(), "Filter name");
op("filter-wasm", bpo::value<std::string>(), "Filter wasm");
op("profile-filter", bpo::bool_switch(), "Enable filter profiling");
op("disable-undo-stack", bpo::bool_switch(), "disable undo stack");
op("undo-stack", bpo::bool_switch(), "Enable undo stack");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description calls this enable-undo-stack which I think would be better.

Copy link
Contributor

@huangminghuang huangminghuang Jul 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest not to use bool_swich and use bpo::value<bool>(); in case if we want to change the default back to enabled in the future, we can just change the default value instead of the option name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

@heifner heifner merged commit e3ba428 into develop-boxed Jul 20, 2021
@heifner heifner deleted the set_defaults branch July 20, 2021 00:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants