Skip to content

Commit

Permalink
*: use go 1.19 (#36223)
Browse files Browse the repository at this point in the history
ref #36879
  • Loading branch information
hawkingrei authored Aug 25, 2022
1 parent f16f52c commit 8036777
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ go_rules_dependencies()

go_register_toolchains(
nogo = "@//build:tidb_nogo",
version = "1.18.5",
version = "1.19",
)

gazelle_dependencies()
Expand Down
18 changes: 9 additions & 9 deletions br/pkg/restore/tiflashrec/tiflash_recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ import (
// during restoring.
// Because the limit of the current implementation, we add serval hooks
// to observe the information we need:
// - Before full restore create tables:
// We record the tiflash replica information and remove the replica info.
// Because during PiTR restore, the transaction model would be broken, which breaks TiFlash too.
// We must make sure they won't be replicated to TiFlash during the whole PiTR procedure.
// - After full restore created tables, generating rewrite rules:
// We perform the rewrite rule over our records.
// We trace table via table ID instead of table name so we can handle `RENAME` DDLs.
// - When doing PiTR restore, after rewriting table info in meta key:
// We update the replica information
// - Before full restore create tables:
// We record the tiflash replica information and remove the replica info.
// Because during PiTR restore, the transaction model would be broken, which breaks TiFlash too.
// We must make sure they won't be replicated to TiFlash during the whole PiTR procedure.
// - After full restore created tables, generating rewrite rules:
// We perform the rewrite rule over our records.
// We trace table via table ID instead of table name so we can handle `RENAME` DDLs.
// - When doing PiTR restore, after rewriting table info in meta key:
// We update the replica information
type TiFlashRecorder struct {
// Table ID -> TiFlash Count
items map[int64]model.TiFlashReplicaInfo
Expand Down

0 comments on commit 8036777

Please sign in to comment.