From 3ac8807fd5559ddb7ae732d4870717277d85e80a Mon Sep 17 00:00:00 2001 From: Chunzhu Li Date: Sat, 14 Mar 2020 10:05:00 +0800 Subject: [PATCH 1/2] update metric schema name --- pkg/filter/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filter/schema.go b/pkg/filter/schema.go index 6003b43aa..c7f022a54 100644 --- a/pkg/filter/schema.go +++ b/pkg/filter/schema.go @@ -27,7 +27,7 @@ var ( // PerformanceSchemaName is the `PERFORMANCE_SCHEMA` database name. PerformanceSchemaName = "PERFORMANCE_SCHEMA" // MetricSchemaName is the `METRIC_SCHEMA` database name. - MetricSchemaName = "METRIC_SCHEMA" + MetricSchemaName = "METRICS_SCHEMA" // InspectionSchemaName is the `INSPECTION_SCHEMA` database name InspectionSchemaName = "INSPECTION_SCHEMA" ) From 12e8cace489f46e744dd3997bdf26c2e1a97b187 Mon Sep 17 00:00:00 2001 From: Chunzhu Li Date: Sat, 14 Mar 2020 10:19:48 +0800 Subject: [PATCH 2/2] fix --- pkg/filter/schema.go | 2 +- pkg/filter/schema_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/filter/schema.go b/pkg/filter/schema.go index c7f022a54..44da977bc 100644 --- a/pkg/filter/schema.go +++ b/pkg/filter/schema.go @@ -26,7 +26,7 @@ var ( InformationSchemaName = "INFORMATION_SCHEMA" // PerformanceSchemaName is the `PERFORMANCE_SCHEMA` database name. PerformanceSchemaName = "PERFORMANCE_SCHEMA" - // MetricSchemaName is the `METRIC_SCHEMA` database name. + // MetricSchemaName is the `METRICS_SCHEMA` database name. MetricSchemaName = "METRICS_SCHEMA" // InspectionSchemaName is the `INSPECTION_SCHEMA` database name InspectionSchemaName = "INSPECTION_SCHEMA" diff --git a/pkg/filter/schema_test.go b/pkg/filter/schema_test.go index d7121222a..63f136723 100644 --- a/pkg/filter/schema_test.go +++ b/pkg/filter/schema_test.go @@ -41,7 +41,7 @@ func (s *testFilterSuite) TestIsSystemSchema(c *C) { {"MYSQL", true}, {"SYS", true}, {"not_system_schema", false}, - {"METRIC_SCHEMA", true}, + {"METRICS_SCHEMA", true}, {"INSPECTION_SCHEMA", true}, }