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

parametrize current rocksdb settings #1479

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Conversation

LesnyRumcajs
Copy link
Member

Summary of changes
Changes introduced in this pull request:

  • Parametrized currently used rocksdb settings,
  • refactored rocksdb tests a bit,
  • some other cosmetic changes I couldn't resist,

Other information and links
Part of #1473, more settings and different defaults may come after some tinkering. Doesn't make sense to expose everything at once, there are quite a lot of different knobs available.

}
}
}

impl Drop for DBPath {
Copy link
Contributor

Choose a reason for hiding this comment

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

No Drop impl for TempRocksDB?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, the tempdir is automatically removed when it goes out of scope.

@codecov
Copy link

codecov bot commented Mar 15, 2022

Codecov Report

Merging #1479 (0dfced1) into main (dcc553e) will decrease coverage by 0.02%.
The diff coverage is 87.17%.

@@            Coverage Diff             @@
##             main    #1479      +/-   ##
==========================================
- Coverage   44.20%   44.17%   -0.03%     
==========================================
  Files         322      322              
  Lines       28483    28471      -12     
==========================================
- Hits        12590    12577      -13     
- Misses      15893    15894       +1     
Impacted Files Coverage Δ
forest/src/cli/config.rs 0.00% <0.00%> (ø)
forest/src/daemon.rs 6.50% <0.00%> (+0.05%) ⬆️
node/db/src/rocks.rs 96.15% <92.85%> (+0.32%) ⬆️
node/db/tests/db_utils/mod.rs 100.00% <100.00%> (ø)
node/db/tests/rocks_test.rs 100.00% <100.00%> (ø)
blockchain/message_pool/src/msg_chain.rs 80.24% <0.00%> (-0.41%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dcc553e...0dfced1. Read the comment docs.

@LesnyRumcajs LesnyRumcajs merged commit d52d4f7 into main Mar 17, 2022
@LesnyRumcajs LesnyRumcajs deleted the rocks-db-config-file branch March 17, 2022 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants