未验证 提交 69db6f24 编写于 作者: P plum-lihui 提交者: GitHub

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

can drop non-existent database
...@@ -315,8 +315,7 @@ int mgmtDropDbByName(SAcctObj *pAcct, char *name) { ...@@ -315,8 +315,7 @@ int mgmtDropDbByName(SAcctObj *pAcct, char *name) {
pDb = (SDbObj *)sdbGetRow(dbSdb, name); pDb = (SDbObj *)sdbGetRow(dbSdb, name);
if (pDb == NULL) { if (pDb == NULL) {
mWarn("db:%s is not there", name); mWarn("db:%s is not there", name);
// return TSDB_CODE_INVALID_DB; return TSDB_CODE_INVALID_DB;
return TSDB_CODE_SUCCESS;
} }
if (mgmtCheckIsMonitorDB(pDb->name, tsMonitorDbName)) { if (mgmtCheckIsMonitorDB(pDb->name, tsMonitorDbName)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册