can drop non-existent database

This commit is contained in:
slguan 2019-12-09 15:52:08 +08:00
parent b9a62d60dc
commit acb19de9d4
1 changed files with 1 additions and 2 deletions

View File

@ -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)) {