Skip to content

Commit a2ee5ab

Browse files
authored
Fixed compile error with Linux AIO unit test (#7958)
1 parent dbc4f8e commit a2ee5ab

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

iocore/aio/test_AIO.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,9 @@ main(int /* argc ATS_UNUSED */, char *argv[])
422422
main_thread->set_specific();
423423

424424
#if AIO_MODE == AIO_MODE_NATIVE
425-
int etype = ET_NET;
426-
int n_netthreads = eventProcessor.n_threads_for_type[etype];
427-
EThread **netthreads = eventProcessor.eventthread[etype];
428-
for (int i = 0; i < n_netthreads; ++i) {
429-
netthreads[i]->diskHandler = new DiskHandler();
430-
netthreads[i]->schedule_imm(netthreads[i]->diskHandler);
425+
for (EThread *et : eventProcessor.active_group_threads(ET_NET)) {
426+
et->diskHandler = new DiskHandler();
427+
et->schedule_imm(et->diskHandler);
431428
}
432429
#endif
433430

0 commit comments

Comments
 (0)