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

stashed WalkDir cleanup, update pebble #1176

Merged
merged 2 commits into from
Nov 7, 2023
Merged

stashed WalkDir cleanup, update pebble #1176

merged 2 commits into from
Nov 7, 2023

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Nov 2, 2023

(see commit messages - please do not squash)

mvdan added 2 commits November 2, 2023 22:32
filepath.Walk is mainly useful for many levels of directories,
but the archive data directory is entirely flat.
Plus, filepath.Walk stats every file that it walks over.

This is a bit simpler to understand and also less indented.
Note that pebble is making multiple breaking changes these days,
and both us and go-ethereum use pebble,
so we need to carefully update both dependencies together.
@mvdan mvdan requested a review from p4u November 2, 2023 22:39
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6739006243

  • 20 of 30 (66.67%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 61.528%

Changes Missing Coverage Covered Lines Changed/Added Lines %
db/pebbledb/pebledb.go 4 8 50.0%
vochain/processarchive/processarchive.go 16 22 72.73%
Totals Coverage Status
Change from base Build 6731987148: 0.02%
Covered Lines: 14283
Relevant Lines: 23214

💛 - Coveralls

@p4u
Copy link
Member

p4u commented Nov 6, 2023

Is this backwards compatible with previous pebble databases?

@mvdan
Copy link
Contributor Author

mvdan commented Nov 6, 2023

I haven't checked. They are v0 and don't do releases, so they don't specify. The commits are just over 200: cockroachdb/pebble@06034ff...aa077af

FormatDefault in that diff hasn't changed, meaning the DB format should still be the same.

@p4u p4u merged commit e0a1a53 into vocdoni:main Nov 7, 2023
7 checks passed
@mvdan mvdan deleted the patches-2 branch November 11, 2023 16:15
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