From c8832b846685d303f5afe29e1f8da50c7aff9a2e Mon Sep 17 00:00:00 2001 From: ShuNing Date: Thu, 21 Sep 2023 19:32:00 +0800 Subject: [PATCH] resource_control: add stats task (#985) Signed-off-by: nolouch --- util/request_source.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/request_source.go b/util/request_source.go index 97d3b83fd..833c30e0f 100644 --- a/util/request_source.go +++ b/util/request_source.go @@ -49,10 +49,11 @@ const ( ExplicitTypeDumpling = "dumpling" ExplicitTypeBackground = "background" ExplicitTypeDDL = "ddl" + ExplicitTypeStats = "stats" ) // ExplicitTypeList is the list of all explicit source types. -var ExplicitTypeList = []string{ExplicitTypeEmpty, ExplicitTypeLightning, ExplicitTypeBR, ExplicitTypeDumpling, ExplicitTypeBackground, ExplicitTypeDDL} +var ExplicitTypeList = []string{ExplicitTypeEmpty, ExplicitTypeLightning, ExplicitTypeBR, ExplicitTypeDumpling, ExplicitTypeBackground, ExplicitTypeDDL, ExplicitTypeStats} const ( // InternalRequest is the scope of internal queries