Skip to content
This repository has been archived by the owner on Jul 15, 2018. It is now read-only.

Implement NewPrefixDB #164

Merged
merged 6 commits into from
Mar 15, 2018
Merged

Implement NewPrefixDB #164

merged 6 commits into from
Mar 15, 2018

Conversation

jaekwon
Copy link
Contributor

@jaekwon jaekwon commented Mar 14, 2018

To fix the MultiStore.

@codecov-io
Copy link

codecov-io commented Mar 14, 2018

Codecov Report

Merging #164 into develop will decrease coverage by 0.48%.
The diff coverage is 36.64%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #164      +/-   ##
===========================================
- Coverage    62.64%   62.16%   -0.49%     
===========================================
  Files           58       59       +1     
  Lines         4235     4379     +144     
===========================================
+ Hits          2653     2722      +69     
- Misses        1368     1440      +72     
- Partials       214      217       +3
Impacted Files Coverage Δ
common/types.pb.go 14.28% <ø> (ø) ⬆️
db/types.go 100% <ø> (ø) ⬆️
db/util.go 56.66% <0%> (-6.2%) ⬇️
db/go_level_db.go 56.11% <0%> (-1.67%) ⬇️
db/mem_batch.go 100% <100%> (+100%) ⬆️
db/prefix_db.go 33.07% <33.07%> (ø)
db/mem_db.go 74.33% <66.66%> (+0.94%) ⬆️
common/random.go 88.28% <0%> (+1.8%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1cc688...aa13329. Read the comment docs.

db/mem_batch.go Outdated
case opTypeDelete:
mBatch.db.DeleteNoLock(op.key)
for i, op := range mBatch.ops {
if i < len(mBatch.ops) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand how's i can be greater than len(mBatch.ops) if we're ranging over it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops, you're right, I missed a -1 . I'll add a test.

@jaekwon jaekwon merged commit d289c92 into develop Mar 15, 2018
@jaekwon jaekwon deleted the jae/dbprefix branch March 15, 2018 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants