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);
|
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)) {
|
||||||
|
|
Loading…
Reference in New Issue