Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

backup,restore: fix panic when pd.GetRegion return nil (#493)#496

Merged
ti-srebot merged 3 commits intopingcap:release-4.0from
ti-srebot:release-4.0-f6490703c048
Sep 10, 2020
Merged

backup,restore: fix panic when pd.GetRegion return nil (#493)#496
ti-srebot merged 3 commits intopingcap:release-4.0from
ti-srebot:release-4.0-f6490703c048

Conversation

@ti-srebot
Copy link
Contributor

cherry-pick #493 to release-4.0


What problem does this PR solve?

Check if pd.GetRegion return region value is nil to avoid panic

What is changed and how it works?

Check List

Tests

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

Code changes

Side effects

Related changes

Release Note

@overvenus
Copy link
Member

LGTM

@ti-srebot ti-srebot added the status/LGT1 LGTM1 label Sep 10, 2020
Copy link
Collaborator

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

lgtm

@ti-srebot ti-srebot added status/LGT2 LGTM2 and removed status/LGT1 LGTM1 labels Sep 10, 2020
@kennytm
Copy link
Collaborator

kennytm commented Sep 10, 2020

/merge

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-srebot ti-srebot merged commit ce6438e into pingcap:release-4.0 Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants