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

ddl: check the tiflash replica count when setting tiflash replica #18826

Merged
merged 19 commits into from
Aug 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make ci happy
Signed-off-by: crazycs520 <crazycs520@gmail.com>
  • Loading branch information
crazycs520 committed Jul 28, 2020
commit 33ec64dfb1b032fe8c35423139b0d1e3da9a55a7
1 change: 1 addition & 0 deletions infoschema/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,7 @@ func GetStoreServerInfo(ctx sessionctx.Context) ([]ServerInfo, error) {
return servers, nil
}

// GetTiFlashStoreCount returns the count of tiflash server.
func GetTiFlashStoreCount(ctx sessionctx.Context) (uint64, error) {
crazycs520 marked this conversation as resolved.
Show resolved Hide resolved
failpoint.Inject("mockTiFlashStoreCount", func(val failpoint.Value) {
if val.(bool) {
Expand Down