mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
delete contex timeout in queryService's load (#4986)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
139b334732
commit
3bb69430cb
@ -178,12 +178,10 @@ func (qs *QueryService) LoadCollection(ctx context.Context, req *querypb.LoadCol
|
||||
return status, err
|
||||
}
|
||||
}
|
||||
loadCtx, cancel := context.WithTimeout(qs.loopCtx, 30*time.Second)
|
||||
loadCollectionTask := &LoadCollectionTask{
|
||||
BaseTask: BaseTask{
|
||||
ctx: loadCtx,
|
||||
cancel: cancel,
|
||||
Condition: NewTaskCondition(loadCtx),
|
||||
ctx: qs.loopCtx,
|
||||
Condition: NewTaskCondition(qs.loopCtx),
|
||||
},
|
||||
LoadCollectionRequest: req,
|
||||
masterService: qs.masterServiceClient,
|
||||
@ -283,12 +281,10 @@ func (qs *QueryService) LoadPartitions(ctx context.Context, req *querypb.LoadPar
|
||||
return status, err
|
||||
}
|
||||
|
||||
releaseCtx, cancel := context.WithTimeout(qs.loopCtx, 30*time.Second)
|
||||
loadPartitionTask := &LoadPartitionTask{
|
||||
BaseTask: BaseTask{
|
||||
ctx: releaseCtx,
|
||||
cancel: cancel,
|
||||
Condition: NewTaskCondition(releaseCtx),
|
||||
ctx: qs.loopCtx,
|
||||
Condition: NewTaskCondition(qs.loopCtx),
|
||||
},
|
||||
LoadPartitionsRequest: req,
|
||||
masterService: qs.masterServiceClient,
|
||||
|
Loading…
Reference in New Issue
Block a user