MS-198 Add error message when creating exist table

Former-commit-id: bf7a8476646f5324a6bb81653af0a6955a36b687
This commit is contained in:
jinhai 2019-07-09 20:35:58 +08:00
parent cbc6381750
commit 084cd42e3d

View File

@ -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");
}
}
}