Skip to content

Commit

Permalink
[SearchProfiler] Set the agg treeRoot value (elastic#61591)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Mar 27, 2020
1 parent 17297ab commit 486e169
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 486e169

Please sign in to comment.