-
Notifications
You must be signed in to change notification settings - Fork 182
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
base: dev
Are you sure you want to change the base?
pruning without batch #2944
Conversation
(cherry picked from commit a79c1da)
@@ -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) { |
There was a problem hiding this comment.
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 Report
📣 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
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
(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 inCHANGELOG.md
Reviewed
Files changed
in the github PR explorerFor Admin Use: