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

can drop non-existent database
This commit is contained in:
plum-lihui 2019-12-12 16:02:39 +08:00 committed by GitHub
commit 69db6f24cc
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)) {