Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/io_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading