diff --git a/src/system/detail/src/mgmtDb.c b/src/system/detail/src/mgmtDb.c index b571e019423689eff1b8d6b0544a2fabe3b5f91f..a9490fe2a26f3371a678932093e30affeeaf86fd 100644 --- a/src/system/detail/src/mgmtDb.c +++ b/src/system/detail/src/mgmtDb.c @@ -315,8 +315,7 @@ int mgmtDropDbByName(SAcctObj *pAcct, char *name) { pDb = (SDbObj *)sdbGetRow(dbSdb, name); if (pDb == NULL) { mWarn("db:%s is not there", name); - // return TSDB_CODE_INVALID_DB; - return TSDB_CODE_SUCCESS; + return TSDB_CODE_INVALID_DB; } if (mgmtCheckIsMonitorDB(pDb->name, tsMonitorDbName)) {