mirror of https://github.com/milvus-io/milvus.git
enhance: Use load pool for `CreateTextIndex` (#37898)
Related to #37895 Only resolves the starving issue which caused goroutine leakage Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/37874/head
parent
83df725146
commit
92e6ee6285
|
@ -1410,7 +1410,7 @@ func (s *LocalSegment) CreateTextIndex(ctx context.Context, fieldID int64) error
|
|||
var status C.CStatus
|
||||
log.Ctx(ctx).Info("create text index for segment", zap.Int64("segmentID", s.ID()), zap.Int64("fieldID", fieldID))
|
||||
|
||||
GetDynamicPool().Submit(func() (any, error) {
|
||||
GetLoadPool().Submit(func() (any, error) {
|
||||
status = C.CreateTextIndex(s.ptr, C.int64_t(fieldID))
|
||||
return nil, nil
|
||||
}).Await()
|
||||
|
|
Loading…
Reference in New Issue