BUGFIX: ignore the case sensitivity of the paramter in limit calculator

This commit is contained in:
obdev
2024-05-08 03:01:04 +00:00
committed by ob-robot
parent 5cc3182bc8
commit c8f1109957

View File

@ -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"