Skip to content

Commit

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

Please sign in to comment.