mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
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>
This commit is contained in:
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…
x
Reference in New Issue
Block a user