Skip to content

Commit

Permalink
*: fix typos (#4832)
Browse files Browse the repository at this point in the history
ref #4399

Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx authored Apr 21, 2022
1 parent 6c5d61c commit 1885540
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion errors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ store %v is paused for leader transfer

["PD:core:ErrSlowStoreEvicted"]
error = '''
store %v is evited as a slow store
store %v is evicted as a slow store
'''

["PD:core:ErrStoreDestroyed"]
Expand Down
2 changes: 1 addition & 1 deletion pkg/errs/errno.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var (
ErrStoreRemoved = errors.Normalize("store %v has been removed", errors.RFCCodeText("PD:core:ErrStoreRemoved"))
ErrStoreDestroyed = errors.Normalize("store %v has been physically destroyed", errors.RFCCodeText("PD:core:ErrStoreDestroyed"))
ErrStoreUnhealthy = errors.Normalize("store %v is unhealthy", errors.RFCCodeText("PD:core:ErrStoreUnhealthy"))
ErrSlowStoreEvicted = errors.Normalize("store %v is evited as a slow store", errors.RFCCodeText("PD:core:ErrSlowStoreEvicted"))
ErrSlowStoreEvicted = errors.Normalize("store %v is evicted as a slow store", errors.RFCCodeText("PD:core:ErrSlowStoreEvicted"))
ErrStoresNotEnough = errors.Normalize("can not remove store %v since the number of up stores would be %v while need %v", errors.RFCCodeText("PD:core:ErrStoresNotEnough"))
ErrNoStoreForRegionLeader = errors.Normalize("can not remove store %d since there are no extra up store to store the leader", errors.RFCCodeText("PD:core:ErrNoStoreForRegionLeader"))
)
Expand Down
4 changes: 2 additions & 2 deletions server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,8 @@ func (c *RaftCluster) checkReplicaBeforeOfflineStore(storeID uint64) error {
expectUpstores[UpStoreID] = true
}
evictLeaderStoresNum := 0
for _, evitStoreID := range evictStores {
if _, ok := expectUpstores[evitStoreID]; ok {
for _, evictStoreID := range evictStores {
if _, ok := expectUpstores[evictStoreID]; ok {
evictLeaderStoresNum++
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/server/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ func (s *clusterTestSuite) TestConcurrentHandleRegion(c *C) {
if i == 0 {
wg.Add(1)
}
go func(isReciver bool) {
if isReciver {
go func(isReceiver bool) {
if isReceiver {
_, err := stream.Recv()
c.Assert(err, IsNil)
wg.Done()
Expand Down

0 comments on commit 1885540

Please sign in to comment.