[skip e2e]Fix compaction executor typo (#13646)

Signed-off-by: godchen0212 <qingxiang.chen@zilliz.com>
This commit is contained in:
godchen 2021-12-17 19:20:46 +08:00 committed by GitHub
parent c7513bb1ad
commit fefeaa2e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ const (
maxTaskNum = 1024
)
var maxParallelCompactionNum = calculeateParallel()
var maxParallelCompactionNum = calculateParallel()
type compactionExecutor struct {
parallelCh chan struct{}
@ -38,7 +38,7 @@ type compactionExecutor struct {
}
// 0.5*min(8, NumCPU/2)
func calculeateParallel() int {
func calculateParallel() int {
return 2
//cores := runtime.NumCPU()
//if cores < 16 {