mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-31 07:55:38 +08:00
MS-198 Add error message when creating exist table
Former-commit-id: bf7a8476646f5324a6bb81653af0a6955a36b687
This commit is contained in:
parent
cbc6381750
commit
084cd42e3d
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user