Skip to content

session: remove unused global variable#12460

Merged
lonng merged 4 commits intopingcap:masterfrom
lonng:remove-unused-code
Sep 29, 2019
Merged

session: remove unused global variable#12460
lonng merged 4 commits intopingcap:masterfrom
lonng:remove-unused-code

Conversation

@lonng
Copy link
Contributor

@lonng lonng commented Sep 28, 2019

Signed-off-by: Lonng heng@lonng.org

What problem does this PR solve?

  1. The global variable mockCommitErrorOnce uses to make sure gofail mockCommitError only mock commit error once. It becomes useless because of we have removed gofail from TiDB.
  2. Compound the sqlexe.ResultSet interface to multiQueryNoDelayRecordSet directly and remove redundant method definations.

What is changed and how it works?

Remove them.

Check List

Tests

  • Unit test
  • Integration test

Release note

  • No need to add to release note.

Signed-off-by: Lonng <heng@lonng.org>
ngaut
ngaut previously approved these changes Sep 28, 2019
Copy link
Member

@ngaut ngaut left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Lonng <heng@lonng.org>
@codecov
Copy link

codecov bot commented Sep 28, 2019

Codecov Report

Merging #12460 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12460   +/-   ##
===========================================
  Coverage   79.9642%   79.9642%           
===========================================
  Files           462        462           
  Lines        103021     103021           
===========================================
  Hits          82380      82380           
  Misses        14737      14737           
  Partials       5904       5904

@lonng
Copy link
Contributor Author

lonng commented Sep 28, 2019

/run-all-tests

@lonng
Copy link
Contributor Author

lonng commented Sep 29, 2019

/run-all-tests

@ngaut ngaut added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 29, 2019
@lonng
Copy link
Contributor Author

lonng commented Sep 29, 2019

/run-common-test

@lonng
Copy link
Contributor Author

lonng commented Sep 29, 2019

/run-integration-common-test
/run-sqllogic-test-2

Copy link
Contributor

@AilinKid AilinKid left a comment

Choose a reason for hiding this comment

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

LGTM

@AilinKid AilinKid added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 29, 2019
Copy link
Contributor

@winkyao winkyao left a comment

Choose a reason for hiding this comment

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

LGTM

@lonng
Copy link
Contributor Author

lonng commented Sep 29, 2019

/run-integration-common-test
/run-sqllogic-test-2

@lonng
Copy link
Contributor Author

lonng commented Sep 29, 2019

/run-all-tests

1 similar comment
@zyxbest
Copy link

zyxbest commented Sep 29, 2019

/run-all-tests

@lonng lonng merged commit d5094bc into pingcap:master Sep 29, 2019
@lonng lonng deleted the remove-unused-code branch September 29, 2019 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/session status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants