Skip to content

Commit

Permalink
Cleanup BucketsAggregator#rewriteBuckets (#114574) (#117577)
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 57048c9 commit cae45b1
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 cae45b1

Please sign in to comment.