can drop non-existent database
This commit is contained in:
parent
b9a62d60dc
commit
acb19de9d4
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue