From 399b47baa30f708347a89fe138885769aaa4410b Mon Sep 17 00:00:00 2001 From: Bryan Call Date: Fri, 18 Jun 2021 15:59:11 -0700 Subject: [PATCH] Fixed compile error with Linux AIO unit test --- iocore/aio/test_AIO.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/iocore/aio/test_AIO.cc b/iocore/aio/test_AIO.cc index 19ba261fb42..87e6f06cf7d 100644 --- a/iocore/aio/test_AIO.cc +++ b/iocore/aio/test_AIO.cc @@ -422,12 +422,9 @@ main(int /* argc ATS_UNUSED */, char *argv[]) main_thread->set_specific(); #if AIO_MODE == AIO_MODE_NATIVE - int etype = ET_NET; - int n_netthreads = eventProcessor.n_threads_for_type[etype]; - EThread **netthreads = eventProcessor.eventthread[etype]; - for (int i = 0; i < n_netthreads; ++i) { - netthreads[i]->diskHandler = new DiskHandler(); - netthreads[i]->schedule_imm(netthreads[i]->diskHandler); + for (EThread *et : eventProcessor.active_group_threads(ET_NET)) { + et->diskHandler = new DiskHandler(); + et->schedule_imm(et->diskHandler); } #endif