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
10 changes: 5 additions & 5 deletions src/proxy/logging/Log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,11 @@ void
Log::create_threads()
{
char desc[64];
preproc_notify = new EventNotify[preproc_threads];
preproc_notify = new EventNotify[preproc_threads];
flush_notify = new EventNotify;
flush_data_list = new InkAtomicList;

ink_atomiclist_init(flush_data_list, "Logging flush buffer list", 0);

size_t stacksize;
stacksize = RecGetRecordInt("proxy.config.thread.default.stacksize").value_or(0);
Expand All @@ -1261,10 +1265,6 @@ Log::create_threads()
// TODO: Enable multiple flush threads, such as
// one flush thread per file.
//
flush_notify = new EventNotify;
flush_data_list = new InkAtomicList;

ink_atomiclist_init(flush_data_list, "Logging flush buffer list", 0);
Continuation *flush_cont = new LoggingFlushContinuation(0);
eventProcessor.spawn_thread(flush_cont, "[LOG_FLUSH]", stacksize);
}
Expand Down