Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

master: extract common logic to a function (#1004) #1009

Merged
merged 6 commits into from
Sep 9, 2020

Conversation

ti-srebot
Copy link

cherry-pick #1004 to release-2.0


What problem does this PR solve?

extract common logic to a function, if in future we will change some logic in this function it would be easier.

close #811

What is changed and how it works?

use runtime and reflect to achieve this

Check List

Tests

  • pass original test

Code changes

Side effects

  • Possible performance regression

Related changes

  • Need to cherry-pick to the release branch

@ti-srebot ti-srebot added priority/normal Minor change, requires approval from ≥1 primary reviewer type/cherry-pick This PR is just a cherry-pick (backport) type/enhancement Performance improvement or refactoring labels Sep 9, 2020
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added the status/LGT1 One reviewer already commented LGTM label Sep 9, 2020
@csuzhangxc csuzhangxc added this to the v2.0.0 RC.3 milestone Sep 9, 2020
@lance6716 lance6716 merged commit 125149b into pingcap:release-2.0 Sep 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT1 One reviewer already commented LGTM type/cherry-pick This PR is just a cherry-pick (backport) type/enhancement Performance improvement or refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants