提交 3928037f 编写于 作者: Q quicksilver

Merge remote-tracking branch 'upstream/master'

......@@ -5,6 +5,7 @@ Please mark all change in change log and use the issue from GitHub
# Milvus 0.7.0 (TBD)
## Bug
- \#744 - Don't return partition table for show_tables
## Feature
- \#343 - Add Opentracing
......
......@@ -173,7 +173,18 @@ DBImpl::AllTables(std::vector<meta::TableSchema>& table_schema_array) {
return SHUTDOWN_ERROR;
}
return meta_ptr_->AllTables(table_schema_array);
std::vector<meta::TableSchema> all_tables;
auto status = meta_ptr_->AllTables(all_tables);
// only return real tables, dont return partition tables
table_schema_array.clear();
for (auto& schema : all_tables) {
if (schema.owner_table_.empty()) {
table_schema_array.push_back(schema);
}
}
return status;
}
Status
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册