diff --git a/sqle/cmd/scannerd/command/base.go b/sqle/cmd/scannerd/command/base.go index 21f54ce02..eeb7b8ba5 100644 --- a/sqle/cmd/scannerd/command/base.go +++ b/sqle/cmd/scannerd/command/base.go @@ -2,7 +2,6 @@ package command import ( "fmt" - "strconv" ) @@ -75,7 +74,8 @@ func GetScannerdCmd(scannerType string) (*scannerCmd, error) { return &rootCmd, nil case TypeMySQLMybatis: return &myBatis, nil - case TypeMySQLSlowLog: + // TDSQL Innodb of MySQL 慢日志格式与 MySQL 慢日志格式一致,复用 Mysql 慢日志 Scanner + case TypeMySQLSlowLog, TypeTDSQLInnodbSlowLog: return &slowLog, nil case TypeTiDBAuditLog: return &tidbAuditLog, nil diff --git a/sqle/cmd/scannerd/command/command.go b/sqle/cmd/scannerd/command/command.go index 647361bbe..5d8344eeb 100644 --- a/sqle/cmd/scannerd/command/command.go +++ b/sqle/cmd/scannerd/command/command.go @@ -1,12 +1,13 @@ package command const ( - TypeMySQLMybatis = "mysql_mybatis" - TypeMySQLSlowLog = "mysql_slow_log" - TypeSQLFile = "sql_file" - TypeTBaseSlowLog = "TBase_slow_log" - TypeTiDBAuditLog = "tidb_audit_log" - TypeRootScannerd = "root" + TypeMySQLMybatis = "mysql_mybatis" + TypeMySQLSlowLog = "mysql_slow_log" + TypeTDSQLInnodbSlowLog = "tdsql_for_innodb_slow_log" + TypeSQLFile = "sql_file" + TypeTBaseSlowLog = "TBase_slow_log" + TypeTiDBAuditLog = "tidb_audit_log" + TypeRootScannerd = "root" ) var ( @@ -58,4 +59,4 @@ func init() { sqlFile.addStringFlag(FlagInstanceName, FlagInstanceNameSort, EmptyDefaultValue, "instance name") sqlFile.addStringFlag(FlagSchemaName, FlagSchemaNameSort, EmptyDefaultValue, "schema name") sqlFile.addRequiredFlag(FlagDirectory) -} \ No newline at end of file +}