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

kv: remove the useless field of snapshot #10276

Merged
merged 2 commits into from
May 5, 2019
Merged

Conversation

zimulala
Copy link
Contributor

What problem does this PR solve?

snapshot isn't being used.

What is changed and how it works?

Remove the useless field in kv.

Check List

Tests

  • No code

@zimulala zimulala added the type/enhancement The issue or PR belongs to an enhancement. label Apr 26, 2019
@zimulala
Copy link
Contributor Author

/run-all-tests

@codecov
Copy link

codecov bot commented Apr 26, 2019

Codecov Report

Merging #10276 into master will decrease coverage by 0.0264%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #10276        +/-   ##
================================================
- Coverage   77.6992%   77.6727%   -0.0265%     
================================================
  Files           411        411                
  Lines         85441      85389        -52     
================================================
- Hits          66387      66324        -63     
- Misses        14095      14105        +10     
- Partials       4959       4960         +1

@zhouqiang-cl
Copy link
Contributor

/run-all-tests

@@ -80,7 +79,6 @@ type unionStore struct {
func NewUnionStore(snapshot Snapshot) UnionStore {
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove the argument of the function?

Copy link
Contributor Author

@zimulala zimulala Apr 30, 2019

Choose a reason for hiding this comment

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

It is used on line82.

@zimulala
Copy link
Contributor Author

PTAL @ngaut @tiancaiamao

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 30, 2019
Copy link
Contributor

@crazycs520 crazycs520 left a comment

Choose a reason for hiding this comment

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

LGTM

@tiancaiamao tiancaiamao merged commit 6f67214 into pingcap:master May 5, 2019
@tiancaiamao tiancaiamao added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 5, 2019
@zimulala zimulala deleted the kv-rm branch May 9, 2019 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants