Skip to content
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

Add config option to conditionally enable RocksDB backend #2266

Merged
merged 2 commits into from
Sep 1, 2019

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Sep 1, 2019

A TOML config section is added with a single key/value to enable RocksDB. The CMake variable -DNANO_ROCKSDB=ON is required when building the node if wanting to use it though so that it has the required dependencies.

[node.rocksdb]
enable = true

There needed to be a way to conditionally use either LMDB/RocksDB when running our tests using the same build. This is done with a new environment variable TEST_USE_ROCKSDB, not done in this task but travis will be modified to run tests with both backends.

Also outputting what backend is used when the node is launched.

(Unrelated) Setting up the logging object in core_test so that boost logging isn't output to standard out before a test has called it.

@wezrule wezrule added documentation This item indicates the need for or supplies updated or expanded documentation quality improvements This item indicates the need for or supplies changes that improve maintainability labels Sep 1, 2019
@wezrule wezrule added this to the V20.0 milestone Sep 1, 2019
@wezrule wezrule requested a review from cryptocode September 1, 2019 06:41
@wezrule wezrule self-assigned this Sep 1, 2019
Copy link
Contributor

@cryptocode cryptocode left a comment

Choose a reason for hiding this comment

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

LGTM

@wezrule wezrule merged commit 5180afa into nanocurrency:master Sep 1, 2019
@wezrule wezrule deleted the config_enable_rocksdb branch September 1, 2019 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This item indicates the need for or supplies updated or expanded documentation quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants