Skip to content

Commit

Permalink
Polish codes.
Browse files Browse the repository at this point in the history
Signed-off-by: Lucasliang <nkcs_lykx@hotmail.com>
  • Loading branch information
LykxSassinator committed Apr 13, 2023
1 parent 9844063 commit 260a805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/schedule/schedulers/evict_slow_trend.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func chooseEvictCandidate(cluster schedule.Cluster) (slowStore *core.StoreInfo)
return store
}

func checkStoresAreUpdated(cluster schedule.Cluster, slowStoreID uint64, baselineTS time.Time) bool {
func checkStoresAreUpdated(cluster schedule.Cluster, slowStoreID uint64, slowStoreRecordTS time.Time) bool {
stores := cluster.GetStores()
if len(stores) <= 1 {
return false
Expand All @@ -351,7 +351,7 @@ func checkStoresAreUpdated(cluster schedule.Cluster, slowStoreID uint64, baselin
updatedStores += 1
continue
}
if baselineTS.Before(store.GetLastHeartbeatTS()) {
if slowStoreRecordTS.Before(store.GetLastHeartbeatTS()) {
updatedStores += 1
}
}
Expand Down

0 comments on commit 260a805

Please sign in to comment.