diff --git a/src/gausskernel/process/threadpool/threadpool_controler.cpp b/src/gausskernel/process/threadpool/threadpool_controler.cpp index 2472a5b56d30fac6ab337056085c32dc8718d99c..ca9ed4d39407a067ffe0284c43510069df984413 100644 --- a/src/gausskernel/process/threadpool/threadpool_controler.cpp +++ b/src/gausskernel/process/threadpool/threadpool_controler.cpp @@ -318,7 +318,7 @@ int ThreadPoolControler::ParseRangeStr(char* attr, bool* arr, int totalNum, char } for (int i = startid; i <= endid; i++) { - retNum += arr[startid] ? 0 : 1; + retNum += arr[i] ? 0 : 1; arr[i] = true; } }