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:
parent
f6474e66de
commit
7a34f1e6c5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue