From d8f4dfcf9d9ec133852210665c286ee2cb64b2b1 Mon Sep 17 00:00:00 2001 From: groot Date: Fri, 14 Jun 2019 18:08:25 +0800 Subject: [PATCH] fix a bug Former-commit-id: cbf14a38d42b41c58f687078e8310a4a968af8cf --- cpp/src/db/DBMetaImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/src/db/DBMetaImpl.cpp b/cpp/src/db/DBMetaImpl.cpp index 26185b84b3..864926b6c1 100644 --- a/cpp/src/db/DBMetaImpl.cpp +++ b/cpp/src/db/DBMetaImpl.cpp @@ -455,7 +455,8 @@ Status DBMetaImpl::FilesToSearch(const std::string &table_id, &TableFileSchema::file_id_, &TableFileSchema::file_type_, &TableFileSchema::size_, - &TableFileSchema::date_), + &TableFileSchema::date_, + &TableFileSchema::engine_type_), where(c(&TableFileSchema::table_id_) == table_id and in(&TableFileSchema::date_, partition) and (c(&TableFileSchema::file_type_) == (int) TableFileSchema::RAW or @@ -482,6 +483,7 @@ Status DBMetaImpl::FilesToSearch(const std::string &table_id, table_file.file_type_ = std::get<3>(file); table_file.size_ = std::get<4>(file); table_file.date_ = std::get<5>(file); + table_file.engine_type_ = std::get<6>(file); table_file.dimension_ = table_schema.dimension_; GetTableFilePath(table_file); auto dateItr = files.find(table_file.date_);