From dd00f1144308cbadd27e0df4d553de5521f526cc Mon Sep 17 00:00:00 2001 From: groot Date: Fri, 6 Sep 2019 11:43:24 +0800 Subject: [PATCH] MS-465 Describe table result confused Former-commit-id: 92f05dd769513e09f23654fe563c4c060c9b51f0 --- cpp/src/db/DBImpl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index 17272c58..3a3e738e 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -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) { -- GitLab