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

improving the readability of some code #639

Merged
merged 1 commit into from
Jul 8, 2019

Conversation

onlymellb
Copy link
Contributor

What problem does this PR solve?

Improve the readability of the code for processing LastTransitionTime

What is changed and how does it work?

Check List

Tests

  • Unit test
  • E2E test
  • Stability test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has Go code change

Does this PR introduce a user-facing change?:

None

@@ -387,12 +387,13 @@ func (tmm *tidbMemberManager) syncTidbClusterStatus(tc *v1alpha1.TidbCluster, se
Health: health,
}
oldTidbMember, exist := tc.Status.TiDB.Members[name]

newTidbMember.LastTransitionTime = metav1.Now()
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a bugfix instead of just a readability change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a bugfix, the logic is still the same as before

@weekface
Copy link
Contributor

weekface commented Jul 8, 2019

/run-e2e-tests

@weekface
Copy link
Contributor

weekface commented Jul 8, 2019

@xiaojingchen ptal

@weekface weekface merged commit 7fc6aac into pingcap:master Jul 8, 2019
yahonda pushed a commit that referenced this pull request Dec 27, 2021
… default (#639)

* add debug section

* comment storageClassName

* fix dead anchor

* address comments

* address comments

Co-authored-by: ti-srebot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants