mirror of https://github.com/milvus-io/milvus.git
Add comment for CreateIndex in indexnode (#8168)
Signed-off-by: cai.zhang <cai.zhang@zilliz.com>pull/8020/head
parent
74bb712527
commit
8d5dc5ba07
|
@ -158,6 +158,8 @@ func (i *IndexNode) isHealthy() bool {
|
|||
return code == internalpb.StateCode_Healthy
|
||||
}
|
||||
|
||||
// CreateIndex receives request from IndexCoordinator to build an index.
|
||||
// Index building is asynchronous, so when an index building request comes, IndexNode records the task and returns.
|
||||
func (i *IndexNode) CreateIndex(ctx context.Context, request *indexpb.CreateIndexRequest) (*commonpb.Status, error) {
|
||||
if i.stateCode.Load().(internalpb.StateCode) != internalpb.StateCode_Healthy {
|
||||
return &commonpb.Status{
|
||||
|
|
Loading…
Reference in New Issue