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

pruning without batch #2944

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from
Open

pruning without batch #2944

wants to merge 9 commits into from

Conversation

cwbhhjl
Copy link
Contributor

@cwbhhjl cwbhhjl commented Feb 6, 2023

(cherry picked from commit a79c1da)

  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests

  • Updated relevant documentation (docs/)

  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md

  • Reviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge PR #XYZ: [title]" (coding standards)

@cwbhhjl cwbhhjl marked this pull request as ready for review February 8, 2023 09:26
lyh169
lyh169 previously approved these changes Feb 9, 2023
libs/iavl/nodedb_oec.go Outdated Show resolved Hide resolved
libs/iavl/nodedb.go Outdated Show resolved Hide resolved
@@ -710,11 +754,18 @@ func (ndb *nodeDB) getPreviousVersion(version int64) int64 {
}

// deleteRoot deletes the root entry from disk, but not the node it points to.
func (ndb *nodeDB) deleteRoot(batch dbm.Batch, version int64, checkLatestVersion bool) {
func (ndb *nodeDB) deleteRoot(batch dbm.Batch, version int64, checkLatestVersion bool, writeToDB bool) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can rename writeToDB a better name. batch is writeToDB too ;P

@codecov-commenter
Copy link

codecov-commenter commented Feb 15, 2023

Codecov Report

Merging #2944 (221f92a) into dev (0d8075d) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head 221f92a differs from pull request most recent head aafa148. Consider uploading reports for the commit aafa148 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##              dev    #2944   +/-   ##
=======================================
  Coverage   36.20%   36.20%           
=======================================
  Files         428      428           
  Lines       44828    44828           
=======================================
+ Hits        16230    16232    +2     
+ Misses      27425    27424    -1     
+ Partials     1173     1172    -1     
Impacted Files Coverage Δ
x/wasm/keeper/keeper.go 79.55% <0.00%> (+0.29%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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.

4 participants