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

sessionctx: change "server_uuid" fake value #9434

Merged
merged 5 commits into from
Mar 13, 2019
Merged

sessionctx: change "server_uuid" fake value #9434

merged 5 commits into from
Mar 13, 2019

Conversation

morgo
Copy link
Contributor

@morgo morgo commented Feb 24, 2019

What problem does this PR solve?

TiDB lies about certain variables to be compatible with MySQL. The current server_uuid value looks so specific, that it is not clear it is for compatibility.

It confused a user I was speaking to.

What is changed and how it works?

I've changed the dummy value from something specific to all zeros. It is a very small change, but is less likely to confuse users since it looks like something uninitialized vs a working feature.

Check List

Tests

  • Unit test
  • No code

Code changes

  • Very minor

Side effects

  • Breaking backward compatibility (unlikely)

Related changes

  • Need to be included in the release note

@morgo
Copy link
Contributor Author

morgo commented Feb 24, 2019

PTAL @GregoryIan (for the remote chance it affects tools), @jackysp

@codecov-io
Copy link

codecov-io commented Feb 24, 2019

Codecov Report

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

@@               Coverage Diff                @@
##             master      #9434        +/-   ##
================================================
- Coverage   67.3955%   67.3917%   -0.0038%     
================================================
  Files           377        377                
  Lines         79345      79345                
================================================
- Hits          53475      53472         -3     
- Misses        21098      21102         +4     
+ Partials       4772       4771         -1

Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@XuHuaiyu XuHuaiyu added status/LGT1 Indicates that a PR has LGTM 1. component/session labels Feb 25, 2019
@XuHuaiyu XuHuaiyu requested a review from zz-jason February 25, 2019 05:53
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Mar 4, 2019
@zz-jason
Copy link
Member

zz-jason commented Mar 4, 2019

/run-all-tests

@zz-jason zz-jason merged commit c0d4632 into pingcap:master Mar 13, 2019
@sre-bot sre-bot added the contribution This PR is from a community contributor. label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/session 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.

5 participants