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 authored Nov 26, 2024
1 parent e9f899e commit bfe1aad
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 bfe1aad

Please sign in to comment.