Skip to content

Commit

Permalink
statistics: fix invaild asnyc_merge_global_stats (#49042) (#49060)
Browse files Browse the repository at this point in the history
close #49041
  • Loading branch information
ti-chi-bot authored Dec 5, 2023
1 parent dc26b81 commit b5f3aa0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/statistics/handle/globalstats/global_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,10 @@ func MergePartitionStats2GlobalStatsByTableID(
}

globalTableInfo := globalTable.Meta()

worker, err := NewAsyncMergePartitionStats2GlobalStats(statsHandle, globalTableInfo, histIDs, is)
if err != nil {
return nil, errors.Trace(err)
}
err = worker.MergePartitionStats2GlobalStats(sc, opts, isIndex)
globalStats, err = MergePartitionStats2GlobalStats(sc, statsHandle, opts, is, globalTableInfo, isIndex, histIDs)
if err != nil {
return nil, errors.Trace(err)
}
globalStats = worker.Result()
if len(globalStats.MissingPartitionStats) > 0 {
var item string
if !isIndex {
Expand Down

0 comments on commit b5f3aa0

Please sign in to comment.