enh: optimize the error code when create and delete a database in a dropping state

This commit is contained in:
Shengliang Guan 2022-11-08 12:36:28 +08:00
parent 36450e6dd7
commit abd95562a0
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ SDbObj *mndAcquireDb(SMnode *pMnode, const char *db) {
terrno = TSDB_CODE_MND_DB_NOT_EXIST;
} else if (terrno == TSDB_CODE_SDB_OBJ_CREATING) {
terrno = TSDB_CODE_MND_DB_IN_CREATING;
} else if (terrno = TSDB_CODE_SDB_OBJ_DROPPING) {
} else if (terrno == TSDB_CODE_SDB_OBJ_DROPPING) {
terrno = TSDB_CODE_MND_DB_IN_DROPPING;
} else {
terrno = TSDB_CODE_APP_ERROR;