diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index e745e87d35..05cbc1db64 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -51,8 +51,8 @@ set(MILVUS_VERSION_PATCH "${milvus_VERSION_PATCH}") if(MILVUS_VERSION_MAJOR STREQUAL "" OR MILVUS_VERSION_MINOR STREQUAL "" OR MILVUS_VERSION_PATCH STREQUAL "") - message(WARNING "Failed to determine Milvus version from '${MILVUS_VERSION}'") - set(MILVUS_VERSION "unknown") + message(WARNING "Failed to determine Milvus version from git branch name") + set(MILVUS_VERSION "0.3.0") endif() message(STATUS "Build version = ${MILVUS_VERSION}") diff --git a/cpp/src/db/DBMetaImpl.cpp b/cpp/src/db/DBMetaImpl.cpp index 9174663395..779307e8a6 100644 --- a/cpp/src/db/DBMetaImpl.cpp +++ b/cpp/src/db/DBMetaImpl.cpp @@ -193,7 +193,7 @@ Status DBMetaImpl::CreateTable(TableSchema &table_schema) { where(c(&TableSchema::table_id_) == table_schema.table_id_)); if (table.size() == 1) { std::string msg = (TableSchema::TO_DELETE == std::get<0>(table[0])) ? - "Table already exists" : "Table already exists and it is in delete state, please wait a second"; + "Table already exists and it is in delete state, please wait a second" : "Table already exists"; return Status::Error(msg); } }