Skip to content

Commit

Permalink
[7.x] [SearchProfiler] Set the agg treeRoot value (#61591) (#61608)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens authored Mar 27, 2020
1 parent 4941c7e commit f8f96e3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export function mutateAggsTimesTree(shard: Shard) {
}
for (const agg of shard.aggregations!) {
initTree([agg], shardTime);
// To make this data structure consistent with that of search we
// mark each aggregation as it's own tree root.
agg.treeRoot = agg;
}
shard.time = shardTime;
}
Expand Down

0 comments on commit f8f96e3

Please sign in to comment.