Browse Source

Fix compilation of InternalVariableWidthHistogram (#58616)

Fixing merge conflict from #58386
Armin Braun 5 years ago
parent
commit
3f240a05f8

+ 2 - 2
server/src/main/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalVariableWidthHistogram.java

@@ -105,7 +105,7 @@ public class InternalVariableWidthHistogram
             centroid = in.readDouble();
             docCount = in.readVLong();
             bounds = new BucketBounds(in);
-            aggregations = new InternalAggregations(in);
+            aggregations = InternalAggregations.readFrom(in);
         }
 
         @Override
@@ -207,7 +207,7 @@ public class InternalVariableWidthHistogram
         }
 
         EmptyBucketInfo(StreamInput in) throws IOException {
-            this(new InternalAggregations(in));
+            this(InternalAggregations.readFrom(in));
         }
 
         public void writeTo(StreamOutput out) throws IOException {