Skip to content

Commit

Permalink
Cleanup BucketsAggregator#rewriteBuckets (elastic#114574)
Browse files Browse the repository at this point in the history
The array is initialized with the flag clearOnResize set to true so we don't need to set the values to 0 again.
  • Loading branch information
iverase committed Nov 26, 2024
1 parent 93df1ee commit dc7cbbb
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public final void rewriteBuckets(long newNumBuckets, LongUnaryOperator mergeMap)
try {
docCounts = bigArrays().newLongArray(newNumBuckets, true);
success = true;
docCounts.fill(0, newNumBuckets, 0);
for (long i = 0; i < oldDocCounts.size(); i++) {
long docCount = oldDocCounts.get(i);

Expand Down

0 comments on commit dc7cbbb

Please sign in to comment.