diff options
author | Nathan Harmata <nharmata@google.com> | 2016-07-26 18:41:41 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-07-27 11:15:11 +0000 |
commit | 3b47b1fdc6b24bb2c947d02316c1cf4e6a02cf09 (patch) | |
tree | b4ba416ed05b1fb39d1f0d35286ea6fce5517957 /src/main/java/com/google/devtools/build/skyframe/InvalidatingNodeVisitor.java | |
parent | 9fce7603ffd4f63b5b7e819e6699a603acda965c (diff) |
Augment the QueryableGraph#get[BatchWithFieldHints] method to take in parameters conveying the requesting node (if any), the requested node(s), as well as a reason for the skyframe graph lookup. Alternate graph implementations may be interested in this information.
--
MOS_MIGRATED_REVID=128496089
Diffstat (limited to 'src/main/java/com/google/devtools/build/skyframe/InvalidatingNodeVisitor.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/skyframe/InvalidatingNodeVisitor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/skyframe/InvalidatingNodeVisitor.java b/src/main/java/com/google/devtools/build/skyframe/InvalidatingNodeVisitor.java index 1fe90d193e..c8dd68a0fe 100644 --- a/src/main/java/com/google/devtools/build/skyframe/InvalidatingNodeVisitor.java +++ b/src/main/java/com/google/devtools/build/skyframe/InvalidatingNodeVisitor.java @@ -269,7 +269,7 @@ public abstract class InvalidatingNodeVisitor<TGraph extends InvalidatableGraph> for (SkyKey key : unvisitedKeys) { pendingVisitations.add(Pair.of(key, InvalidationType.DELETED)); } - final Map<SkyKey, NodeEntry> entries = graph.getBatch(unvisitedKeys); + final Map<SkyKey, NodeEntry> entries = graph.getBatchForInvalidation(unvisitedKeys); for (final SkyKey key : unvisitedKeys) { executor.execute( new Runnable() { @@ -305,7 +305,7 @@ public abstract class InvalidatingNodeVisitor<TGraph extends InvalidatableGraph> entry.isDone() ? entry.getDirectDeps() : entry.getAllDirectDepsForIncompleteNode(); - Map<SkyKey, NodeEntry> depMap = graph.getBatch(directDeps); + Map<SkyKey, NodeEntry> depMap = graph.getBatchForInvalidation(directDeps); for (Map.Entry<SkyKey, NodeEntry> directDepEntry : depMap.entrySet()) { NodeEntry dep = directDepEntry.getValue(); if (dep != null) { @@ -432,7 +432,7 @@ public abstract class InvalidatingNodeVisitor<TGraph extends InvalidatableGraph> pendingVisitations.add(Pair.of(key, invalidationType)); } } - final Map<SkyKey, ? extends ThinNodeEntry> entries = graph.getBatch(keysToGet); + final Map<SkyKey, ? extends ThinNodeEntry> entries = graph.getBatchForInvalidation(keysToGet); if (enqueueingKeyForExistenceCheck != null && entries.size() != keysToGet.size()) { Set<SkyKey> missingKeys = Sets.difference(ImmutableSet.copyOf(keysToGet), entries.keySet()); throw new IllegalStateException( |