Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitStatsPercentage atomicutil.Float64
InitStatsPercentage is the percentage of the table to load stats.
Functions ¶
This section is empty.
Types ¶
type RangeWorker ¶
type RangeWorker struct {
// contains filtered or unexported fields
}
RangeWorker is used to load stats concurrently by the range of table id.
func NewRangeWorker ¶
func NewRangeWorker(taskName string, dealFunc func(task Task) error, maxTid, initStatsStep uint64, totalPercentageStep float64) *RangeWorker
NewRangeWorker creates a new RangeWorker.
func (*RangeWorker) LoadStats ¶
func (ls *RangeWorker) LoadStats()
LoadStats loads stats concurrently when to init stats
func (*RangeWorker) SendTask ¶
func (ls *RangeWorker) SendTask(task Task)
SendTask sends a task to the load stats worker.
Click to show internal directories.
Click to hide internal directories.