From e40c06740052fe79ae4c4ced5f6c5ff337f3280f Mon Sep 17 00:00:00 2001 From: groot Date: Fri, 22 Nov 2019 17:45:50 +0800 Subject: [PATCH] #416 Drop the same partition success repeatally --- core/src/db/meta/SqliteMetaImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/db/meta/SqliteMetaImpl.cpp b/core/src/db/meta/SqliteMetaImpl.cpp index 19ec684728..74460c1b4d 100644 --- a/core/src/db/meta/SqliteMetaImpl.cpp +++ b/core/src/db/meta/SqliteMetaImpl.cpp @@ -836,7 +836,8 @@ SqliteMetaImpl::GetPartitionName(const std::string& table_id, const std::string& auto name = ConnectorPtr->select(columns(&TableSchema::table_id_), where(c(&TableSchema::owner_table_) == table_id - and c(&TableSchema::partition_tag_) == valid_tag)); + and c(&TableSchema::partition_tag_) == valid_tag + and c(&TableSchema::state_) != (int)TableSchema::TO_DELETE)); if (name.size() > 0) { partition_name = std::get<0>(name[0]); } else {