From d089b9d2af3e7b299ccb6cb79c6c1dc80404708a Mon Sep 17 00:00:00 2001 From: starlord Date: Mon, 9 Sep 2019 17:58:48 +0800 Subject: [PATCH] MS-529 incorrect message Former-commit-id: 2e0c64b0ad9330e53ba185f95f85c128c456e050 --- cpp/src/db/engine/ExecutionEngine.cpp | 22 ---------------------- cpp/src/db/insert/MemTableFile.cpp | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 cpp/src/db/engine/ExecutionEngine.cpp diff --git a/cpp/src/db/engine/ExecutionEngine.cpp b/cpp/src/db/engine/ExecutionEngine.cpp deleted file mode 100644 index 3412eb34..00000000 --- a/cpp/src/db/engine/ExecutionEngine.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved - * Unauthorized copying of this file, via any medium is strictly prohibited. - * Proprietary and confidential. - ******************************************************************************/ -#include "ExecutionEngine.h" - -#include - -namespace zilliz { -namespace milvus { -namespace engine { - -Status ExecutionEngine::AddWithIdArray(const std::vector& vectors, const std::vector& vector_ids) { - long n = (long)vector_ids.size(); - return AddWithIds(n, vectors.data(), vector_ids.data()); -} - - -} // namespace engine -} // namespace milvus -} // namespace zilliz diff --git a/cpp/src/db/insert/MemTableFile.cpp b/cpp/src/db/insert/MemTableFile.cpp index 25abb8db..5d55bebb 100644 --- a/cpp/src/db/insert/MemTableFile.cpp +++ b/cpp/src/db/insert/MemTableFile.cpp @@ -49,7 +49,7 @@ Status MemTableFile::Add(const VectorSource::Ptr &source, IDNumbers& vector_ids) std::string err_msg = "MemTableFile::Add: table_file_schema dimension = " + std::to_string(table_file_schema_.dimension_) + ", table_id = " + table_file_schema_.table_id_; ENGINE_LOG_ERROR << err_msg; - return Status(DB_ERROR, err_msg); + return Status(DB_ERROR, "not able to create table file"); } size_t single_vector_mem_size = table_file_schema_.dimension_ * VECTOR_TYPE_SIZE; -- GitLab