diff --git a/src/system/detail/src/mgmtDb.c b/src/system/detail/src/mgmtDb.c index 1ad41c00ebf95377a73e3a365bc93b8c48578cbc..4bd64330687685645a284a4adc97cd5cc2fd2e47 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)) {