From 7b35e2cebec428dcc6d8de75c50671db608a8a3f Mon Sep 17 00:00:00 2001 From: starlord Date: Mon, 15 Jul 2019 19:48:11 +0800 Subject: [PATCH] MS-235 Some test cases random fail Former-commit-id: c77aab33541b0c5da7c3cdc6a080fb47c76bd301 --- cpp/CHANGELOG.md | 1 + cpp/src/db/DBMetaImpl.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cpp/CHANGELOG.md b/cpp/CHANGELOG.md index 812e62eb2d..3e699d8cd1 100644 --- a/cpp/CHANGELOG.md +++ b/cpp/CHANGELOG.md @@ -18,6 +18,7 @@ Please mark all change in change log and use the ticket from JIRA. - MS-233 - Remove mem manager log - MS-230 - Change parameter name: Maximum_memory to insert_buffer_size - MS-234 - Some case cause background merge thread stop +- MS-235 - Some test cases random fail ## Improvement - MS-156 - Add unittest for merge result functions diff --git a/cpp/src/db/DBMetaImpl.cpp b/cpp/src/db/DBMetaImpl.cpp index 99ae3b6711..48e0fa46cd 100644 --- a/cpp/src/db/DBMetaImpl.cpp +++ b/cpp/src/db/DBMetaImpl.cpp @@ -291,6 +291,8 @@ Status DBMetaImpl::HasNonIndexFiles(const std::string& table_id, bool& has) { try { auto selected = ConnectorPtr->select(columns(&TableFileSchema::id_), where((c(&TableFileSchema::file_type_) == (int) TableFileSchema::RAW + or + c(&TableFileSchema::file_type_) == (int) TableFileSchema::NEW or c(&TableFileSchema::file_type_) == (int) TableFileSchema::TO_INDEX) and c(&TableFileSchema::table_id_) == table_id