From 084cd42e3d1a1c96cb72bd2534c746fe0606191d Mon Sep 17 00:00:00 2001 From: jinhai Date: Tue, 9 Jul 2019 20:35:58 +0800 Subject: [PATCH] MS-198 Add error message when creating exist table Former-commit-id: bf7a8476646f5324a6bb81653af0a6955a36b687 --- cpp/src/db/DBMetaImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/src/db/DBMetaImpl.cpp b/cpp/src/db/DBMetaImpl.cpp index 0e2b52dbe2..0ab1963c34 100644 --- a/cpp/src/db/DBMetaImpl.cpp +++ b/cpp/src/db/DBMetaImpl.cpp @@ -196,7 +196,8 @@ Status DBMetaImpl::CreateTable(TableSchema &table_schema) { if(TableSchema::TO_DELETE == std::get<0>(table[0])) { return Status::Error("Table already exists and it is in delete state, please wait a second"); } else { - return Status::OK();//table already exists, no error + // Change from no error to already exist. + return Status::AlreadyExist("Table already exists"); } } }