Fix compile error (#1844)

Signed-off-by: JinHai-CN <hai.jin@zilliz.com>
pull/1846/head
Jin Hai 2020-04-01 23:38:24 +08:00 committed by GitHub
parent 2fcf2855ce
commit 78a7aac6dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -367,7 +367,7 @@ ClientProxy::DescribeCollection(const std::string& collection_name, CollectionPa
Status status = client_ptr_->DescribeTable(collection_name, grpc_schema);
collection_param.collection_name = grpc_schema.collection_name();
collection_param.collection_name = grpc_schema.table_name();
collection_param.dimension = grpc_schema.dimension();
collection_param.index_file_size = grpc_schema.index_file_size();
collection_param.metric_type = static_cast<MetricType>(grpc_schema.metric_type());
@ -400,7 +400,7 @@ ClientProxy::ShowCollections(std::vector<std::string>& collection_array) {
collection_array.resize(collection_name_list.table_names_size());
for (uint64_t i = 0; i < collection_name_list.table_names_size(); ++i) {
collection_array[i] = collection_name_list.collection_names(i);
collection_array[i] = collection_name_list.table_names(i);
}
return status;
} catch (std::exception& ex) {