Skip to content

Commit 4440767

Browse files
authored
Fix for exception when number of records in LatencyRecord was a multiple of ALLOC_SIZE
Fix for exception when number of records in LatencyRecord was a multiple of ALLOC_SIZE
1 parent 8f0cebe commit 4440767

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/com/oltpbenchmark/LatencyRecord.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ public boolean hasNext() {
9292
if (chunkIndex < values.size() - 1) {
9393
return true;
9494
}
95-
95+
else if (chunkIndex > values.size() - 1) {
96+
return false;
97+
}
98+
9699
assert chunkIndex == values.size() - 1;
97100
if (subIndex < nextIndex) {
98101
return true;

0 commit comments

Comments
 (0)