Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Jan 30, 2023
1 parent bb9f77b commit bb18116
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion domain/historical_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"github.com/pingcap/tidb/parser/model"
"github.com/pingcap/tidb/sessionctx"
"github.com/pingcap/tidb/statistics/handle"
"github.com/pingcap/tidb/util/logutil"
"go.uber.org/zap"
)

var (
Expand All @@ -45,7 +47,12 @@ func (w *HistoricalStatsWorker) SendTblToDumpHistoricalStats(tableID int64) {
if !send {
return
}
w.tblCH <- tableID
select {
case w.tblCH <- tableID:
return
default:
logutil.BgLogger().Warn("discard dump historical stats task", zap.Int64("table-id", tableID))
}
}

// DumpHistoricalStats dump stats by given tableID
Expand Down

0 comments on commit bb18116

Please sign in to comment.