Merge pull request #913 from taosdata/hotfix/TBASE-1273

Can drop non-existent databases
This commit is contained in:
plum-lihui 2019-12-12 16:03:18 +08:00 committed by GitHub
commit 2027e7b2bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)) {