Skip to content

[Storage] Remove old code in initBadgerDB() #7230

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

Conversation

fxamacker
Copy link
Member

@fxamacker fxamacker commented Apr 3, 2025

Updates #6527

Currently, initProtocolDB() sets ProtocolDB to either BadgerDB or PebbleDB depending on dbops. But there is still some old code that sets ProtocolDB to BadgerDB in initBadgerDB().

This PR removes the old code in initBadgerDB().

I found this while getting familiar with storage code releated to BadgerDB and Pebble.

Currently, initProtocolDB() sets ProtocolDB to either BadgerDB
or PebbleDB depending on dbops. But there is still some old code
that sets ProtocolDB to BadgerDB in initBadgerDB().

This commit removes the old code in initBadgerDB().
@fxamacker fxamacker requested review from zhangchiqing and a team April 3, 2025 01:21
@fxamacker fxamacker self-assigned this Apr 3, 2025
@fxamacker fxamacker requested a review from a team as a code owner April 3, 2025 01:21
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.36%. Comparing base (9bf0e82) to head (1b717db).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7230      +/-   ##
==========================================
- Coverage   41.36%   41.36%   -0.01%     
==========================================
  Files        2174     2174              
  Lines      190130   190127       -3     
==========================================
- Hits        78651    78639      -12     
- Misses     104898   104905       +7     
- Partials     6581     6583       +2     
Flag Coverage Δ
unittests 41.36% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fxamacker fxamacker changed the title Remove old code in initBadgerDB() [Storage] Remove old code in initBadgerDB() Apr 3, 2025
@fxamacker fxamacker added this pull request to the merge queue Apr 4, 2025
Merged via the queue into master with commit 6a3401b Apr 4, 2025
56 checks passed
@fxamacker fxamacker deleted the fxamacker/remove-old-code-to-set-protocoldb-in-initBadgerDB branch April 4, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants