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

Consolidate repeated code in Rocks::open() #34131

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

steviez
Copy link
Contributor

@steviez steviez commented Nov 17, 2023

Problem

The function matches the access type and calls a different RocksDB function depending on whether we have primary or secondary access. But, lots of the code is the same for these two paths so de-duplicate the repeated sections.

The function matches the access type and calls a different RocksDB
function depending on whether we have primary or secondary access. But,
lots of the code is the same for these two paths so de-duplicate the
repeated sections.
@steviez steviez force-pushed the bstore_open_cleanup branch from 902beab to d796f90 Compare November 17, 2023 05:22
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Merging #34131 (d796f90) into master (eb35a5a) will decrease coverage by 0.1%.
Report is 3 commits behind head on master.
The diff coverage is 87.5%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34131     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         818      818             
  Lines      219939   219933      -6     
=========================================
- Hits       180219   180173     -46     
- Misses      39720    39760     +40     

@steviez steviez marked this pull request as ready for review November 17, 2023 06:29
@steviez steviez requested a review from yhchiang-sol November 17, 2023 06:29
Copy link
Contributor

@yhchiang-sol yhchiang-sol left a comment

Choose a reason for hiding this comment

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

Neat! Looks good!

@steviez steviez merged commit 29947ba into solana-labs:master Nov 17, 2023
32 checks passed
@steviez steviez deleted the bstore_open_cleanup branch November 17, 2023 16:18
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