From c8f1109957e5c484f220f9608c5d06a65e5213c0 Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 8 May 2024 03:01:04 +0000 Subject: [PATCH] BUGFIX: ignore the case sensitivity of the paramter in limit calculator --- src/share/resource_limit_calculator/ob_resource_commmon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/resource_limit_calculator/ob_resource_commmon.cpp b/src/share/resource_limit_calculator/ob_resource_commmon.cpp index 28cc22d095..2759ac9dae 100644 --- a/src/share/resource_limit_calculator/ob_resource_commmon.cpp +++ b/src/share/resource_limit_calculator/ob_resource_commmon.cpp @@ -39,7 +39,7 @@ int64_t get_logic_res_type_by_name(const char *type_name) { int64_t out_type = INVALID_LOGIC_RESOURCE; #define DEF_RESOURCE_LIMIT_CALCULATOR(n, type, name, subhandler) \ - if (strcmp(type_name, #name) == 0) { \ + if (strcasecmp(type_name, #name) == 0) { \ out_type = n; \ } #include "share/resource_limit_calculator/ob_resource_limit_calculator_def.h"