Fix AssertionError caused by incorrect for loop (#10554)

Motivation:

incorrect for loop we could end up with an AssertionError (this is
sometimes triggered during testsuite run)

Modifications:

Fix for loop that calls IovArray.clear()

Result:

No more AssertionError
This commit is contained in:
Norman Maurer 2020-09-09 09:18:29 +02:00 committed by GitHub
parent f6474e66de
commit 7a34f1e6c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ final class IOUringEventLoop extends SingleThreadEventLoop implements
}
private void clearUsedIovArrays() {
for (int i = 0; i < iovArrayIdx; i++) {
for (int i = 0; i <= iovArrayIdx; i++) {
iovArrays[i].clear();
}
iovArrayIdx = 0;