提交 acae77d6 编写于 作者: P peng.xu

Merge branch 'branch-0.4.0' into 'branch-0.4.0'

MS-465 Describe table result confused

See merge request megasearch/milvus!492

Former-commit-id: 9cd51eab3062ffe902bae2ee7904ea1644d66111
......@@ -104,7 +104,7 @@ Status DBImpl::CreateTable(meta::TableSchema& table_schema) {
}
meta::TableSchema temp_schema = table_schema;
temp_schema.index_file_size_ *= ONE_MB;
temp_schema.index_file_size_ *= ONE_MB; //store as MB
return meta_ptr_->CreateTable(temp_schema);
}
......@@ -139,7 +139,9 @@ Status DBImpl::DescribeTable(meta::TableSchema& table_schema) {
return Status::Error("Milsvus server is shutdown!");
}
return meta_ptr_->DescribeTable(table_schema);
auto stat = meta_ptr_->DescribeTable(table_schema);
table_schema.index_file_size_ /= ONE_MB; //return as MB
return stat;
}
Status DBImpl::HasTable(const std::string& table_id, bool& has_or_not) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册