From 113aefd49437c9f34b63d89e9e53d881422e723e Mon Sep 17 00:00:00 2001 From: Yang Zhao Date: Thu, 16 Apr 2026 22:18:32 +0800 Subject: [PATCH] Fix Clang 17 build error Signed-off-by: Yang Zhao --- src/io_threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io_threads.c b/src/io_threads.c index 104934c303a..ca7d142fd9b 100644 --- a/src/io_threads.c +++ b/src/io_threads.c @@ -149,6 +149,7 @@ void IOThreadsBeforeSleep(long long current_time) { #define IO_IGNITION_CPU_SYS 30.0 #define IO_IGNITION_CPU_SYS_LOW 5.0 #define IO_IGNITION_CPU_USER 50.0 +#define BATCH_SIZE 32 void IOThreadsAfterSleep(int numevents) { if (server.io_threads_num == 1) return; @@ -301,7 +302,6 @@ static void *IOThreadMain(void *myid) { pthread_cleanup_push(cleanupThreadResources, NULL); thread_id = (int)id; - const int BATCH_SIZE = 32; void *batch_jobs[BATCH_SIZE]; int processed = 0; monotime work_start_time = 0;