[skip ci] Add comment for GetIndexState (#11842)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
This commit is contained in:
dragondriver 2021-11-16 09:05:35 +08:00 committed by GitHub
parent 24d175bc72
commit 471ce979e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1206,6 +1206,7 @@ func (node *Proxy) GetIndexBuildProgress(ctx context.Context, request *milvuspb.
return gibpt.result, nil return gibpt.result, nil
} }
// GetIndexState get the build-state of index.
func (node *Proxy) GetIndexState(ctx context.Context, request *milvuspb.GetIndexStateRequest) (*milvuspb.GetIndexStateResponse, error) { func (node *Proxy) GetIndexState(ctx context.Context, request *milvuspb.GetIndexStateRequest) (*milvuspb.GetIndexStateResponse, error) {
if !node.checkHealthy() { if !node.checkHealthy() {
return &milvuspb.GetIndexStateResponse{ return &milvuspb.GetIndexStateResponse{