Skip to content

Commit cae45b1

Browse files
authored
Cleanup BucketsAggregator#rewriteBuckets (#114574) (#117577)
The array is initialized with the flag clearOnResize set to true so we don't need to set the values to 0 again.
1 parent 57048c9 commit cae45b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/src/main/java/org/elasticsearch/search/aggregations/bucket/BucketsAggregator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public final void rewriteBuckets(long newNumBuckets, LongUnaryOperator mergeMap)
105105
try {
106106
docCounts = bigArrays().newLongArray(newNumBuckets, true);
107107
success = true;
108-
docCounts.fill(0, newNumBuckets, 0);
109108
for (long i = 0; i < oldDocCounts.size(); i++) {
110109
long docCount = oldDocCounts.get(i);
111110

0 commit comments

Comments
 (0)