From 149882a1d54dfc50bf43e64b2460b28fc41f5c55 Mon Sep 17 00:00:00 2001 From: janakr Date: Mon, 7 Jun 2021 16:23:24 -0700 Subject: [PATCH] Add graph fetch Reason "WALKABLE_GRAPH_OTHER" to indicate we need all node entry attributes for a walkable graph. PiperOrigin-RevId: 378031048 --- .../com/google/devtools/build/skyframe/QueryableGraph.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/skyframe/QueryableGraph.java b/src/main/java/com/google/devtools/build/skyframe/QueryableGraph.java index 0434eedd524c36..b0515d6aa6333b 100644 --- a/src/main/java/com/google/devtools/build/skyframe/QueryableGraph.java +++ b/src/main/java/com/google/devtools/build/skyframe/QueryableGraph.java @@ -170,6 +170,9 @@ enum Reason { /** The node is being looked up to service {@link WalkableGraph#getValueAndRdeps}. */ WALKABLE_GRAPH_VALUE_AND_RDEPS, + /** The node is being looked up to service another "graph lookup" function. */ + WALKABLE_GRAPH_OTHER, + /** Some other reason than one of the above that needs the node's value and deps. */ OTHER_NEEDING_VALUE_AND_DEPS, @@ -186,7 +189,8 @@ public boolean isWalkable() { return this == WALKABLE_GRAPH_VALUE || this == WALKABLE_GRAPH_DEPS || this == WALKABLE_GRAPH_RDEPS - || this == WALKABLE_GRAPH_VALUE_AND_RDEPS; + || this == WALKABLE_GRAPH_VALUE_AND_RDEPS + || this == WALKABLE_GRAPH_OTHER; } }