remove unused code

This commit is contained in:
hjxilinx 2019-11-11 13:11:36 +08:00
parent 1aa5f927f3
commit d609fe319a
1 changed files with 0 additions and 6 deletions

View File

@ -378,12 +378,6 @@ int mgmtDropDbByName(SAcctObj *pAcct, char *name) {
return TSDB_CODE_SUCCESS;
}
// char dbName[TSDB_DB_NAME_LEN + 1] = {0};
// extractDBName(pDb->name, dbName);
// if (strncasecmp(dbName, tsMonitorDbName, strlen(dbName)) == 0) {
// return TSDB_CODE_MONITOR_DB_FORBEIDDEN;
// }
if (mgmtCheckIsMonitorDB(pDb->name, tsMonitorDbName)) {
return TSDB_CODE_MONITOR_DB_FORBEIDDEN;
}