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: correct comments mistake. #6829

Merged

Conversation

Angryrou
Copy link
Contributor

This pr is referred to Issue #3120.

@sre-bot
Copy link
Contributor

sre-bot commented Jun 13, 2018

Hi contributor, thanks for your PR.

This patch needs to be approved by someone of admins. They should reply with "/ok-to-test" to accept this PR for running test automatically.

@ngaut
Copy link
Member

ngaut commented Jun 13, 2018

LGTM

kv/txn.go Outdated
@@ -74,7 +74,7 @@ func RunInNewTxn(store Storage, retryable bool, f func(txn Transaction) error) e
}

var (
// Max retry count in RunInNewTxn
// maxRetryCnt in RunInNewTxn
Copy link
Contributor

Choose a reason for hiding this comment

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

maxRetryCnt represents maximum retry times in RunInNewTxn

Copy link
Contributor

Choose a reason for hiding this comment

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

Add . at the end of a line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kv/union_iter.go Outdated
@@ -47,14 +47,14 @@ func NewUnionIter(dirtyIt Iterator, snapshotIt Iterator, reverse bool) (*UnionIt
return it, nil
}

// Go next and update valid status.
// dirtyNext and update valid status.
Copy link
Contributor

Choose a reason for hiding this comment

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

cc @winoros PTAL. I am not sure the correctness of comment.

Copy link
Member

Choose a reason for hiding this comment

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

Better follow the pattern FuncName does something

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zhexuany @winoros PTAL again

kv/union_iter.go Outdated
func (iter *UnionIter) dirtyNext() error {
err := iter.dirtyIt.Next()
iter.dirtyValid = iter.dirtyIt.Valid()
return errors.Trace(err)
}

// Go next and update valid status.
// snapshotNext and update valid status.
Copy link
Contributor

Choose a reason for hiding this comment

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

cc @winoros ditto.

Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@zimulala zimulala added status/LGT1 Indicates that a PR has LGTM 1. contribution This PR is from a community contributor. labels Jun 13, 2018
@Angryrou Angryrou force-pushed the fixed_correct_comments_mistake_in_kv branch from 032ab75 to d3e4f49 Compare June 14, 2018 02:54
Copy link
Contributor

@zhexuany zhexuany left a comment

Choose a reason for hiding this comment

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

LGTM

@zhexuany zhexuany merged commit c84a71d into pingcap:master Jun 14, 2018
@zhexuany zhexuany added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jun 14, 2018
@Angryrou Angryrou deleted the fixed_correct_comments_mistake_in_kv branch June 16, 2018 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants