[skip ci]Add some comments in chap06_root_coordinator.md (#10237)

Signed-off-by: ruiyi.jiang <ruiyi.jiang@zilliz.com>
pull/10298/head
ryjiang 2021-10-20 19:32:02 +08:00 committed by GitHub
parent c7836f9f41
commit e82e01a7fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,16 @@ type RootCoord interface {
Component
TimeTickProvider
//DDL request
// DDL request
// CreateCollection notifies RootCoord to create a collection
//
// ctx is the context to control request deadline and cancellation
// req contains the request params, including database name(not used), collection name, collection schema and
// physical channel num for inserting data
//
// The `ErrorCode` of `Status` is `Success` if create collection successfully;
// otherwise, the `ErrorCode` of `Status` will be `Error`, and the `Reason` of `Status` will record the fail cause.
// error is always nil
CreateCollection(ctx context.Context, req *milvuspb.CreateCollectionRequest) (*commonpb.Status, error)
DropCollection(ctx context.Context, req *milvuspb.DropCollectionRequest) (*commonpb.Status, error)
HasCollection(ctx context.Context, req *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error)