You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/07/28 22:23:58 UTC
[trafficserver] branch 9.1.x updated: Fixed compile error with
Linux AIO unit test (#7958)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.1.x by this push:
new c1cf565 Fixed compile error with Linux AIO unit test (#7958)
c1cf565 is described below
commit c1cf5652bd7b9193665cb47b0fd270cc0338eb04
Author: Bryan Call <bc...@apache.org>
AuthorDate: Mon Jun 21 16:24:12 2021 -0700
Fixed compile error with Linux AIO unit test (#7958)
(cherry picked from commit a2ee5abc6e376675bf2042955464bf2445e9dca7)
---
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 19ba261..87e6f06 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