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

Minor refactor on Shreds column family descriptor construction. #23103

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Minor refactor on Shreds column family descriptor construction. #23103

merged 1 commit into from
Feb 16, 2022

Conversation

yhchiang-sol
Copy link
Contributor

Summary of Changes

Avoid duplicate code by having a template function to create shreds column family descriptor.

steviez
steviez previously approved these changes Feb 15, 2022
Copy link
Contributor

@steviez steviez left a comment

Choose a reason for hiding this comment

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

Just the one minor thing - other than that, good code de-dupe and LGTM!

Comment on lines 1432 to 1436
warn!(
" is must be greater than {} for RocksFifo.",
FIFO_WRITE_BUFFER_SIZE
);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Looks like you missed adding the column name back in when you consolidated:

warn!("{} cf_size must be greater than {} when using ShredStorageType::RocksFifo",
    C::NAME, FIFO_WRITE_BUFFER_SIZE);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yep! Thanks for spotting that. Let me fix it!

@mergify mergify bot dismissed steviez’s stale review February 15, 2022 19:16

Pull request has been modified.

@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #23103 (a232137) into master (6e5db4a) will decrease coverage by 0.0%.
The diff coverage is 85.1%.

@@            Coverage Diff            @@
##           master   #23103     +/-   ##
=========================================
- Coverage    81.3%    81.3%   -0.1%     
=========================================
  Files         564      567      +3     
  Lines      153290   154368   +1078     
=========================================
+ Hits       124726   125554    +828     
- Misses      28564    28814    +250     

@yhchiang-sol yhchiang-sol merged commit 7939fdc into solana-labs:master Feb 16, 2022
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.

2 participants