From 02ff9967fb10e94a3491def9377629ac39e98347 Mon Sep 17 00:00:00 2001 From: Yihao Deng Date: Mon, 6 May 2024 12:52:56 +0000 Subject: [PATCH] fix log --- source/util/src/tsched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/util/src/tsched.c b/source/util/src/tsched.c index 603547e30b..6a1efb5d24 100644 --- a/source/util/src/tsched.c +++ b/source/util/src/tsched.c @@ -28,7 +28,7 @@ static void taosDumpSchedulerStatus(void *qhandle, void *tmrId); void *taosInitScheduler(int32_t queueSize, int32_t numOfThreads, const char *label, SSchedQueue *pSched) { bool schedMalloced = false; - + if (NULL == pSched) { pSched = (SSchedQueue *)taosMemoryCalloc(sizeof(SSchedQueue), 1); if (pSched == NULL) { @@ -100,7 +100,7 @@ void *taosInitScheduler(int32_t queueSize, int32_t numOfThreads, const char *lab int32_t code = taosThreadCreate(pSched->qthread + i, &attr, taosProcessSchedQueue, (void *)pSched); taosThreadAttrDestroy(&attr); if (code != 0) { - uError("%s: failed to create rpc thread(%s)", label, strerror(errno)); + uError("%s: failed to create thread(%s)", label, strerror(errno)); taosCleanUpScheduler(pSched); if (schedMalloced) { taosMemoryFree(pSched);