diff options
author | Nathan Harmata <nharmata@google.com> | 2015-06-08 15:44:45 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-06-09 09:57:00 +0000 |
commit | 7c66f2dd42f8feefeba0bd20ec72e731404bc387 (patch) | |
tree | 5188d92e93ea88a8cc08a1e241379aacaf5dcb53 /src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java | |
parent | 5e25aef06157afb0754ccd951631aec13ddec9af (diff) |
Don't be unnecessarily conservative about marking FileStateKeys and DirectoryListingStateKeys as dirty. Note that the two previous "concerns" of cycles and errors (which weren't actually concerns) are now obsolete anyway.
--
MOS_MIGRATED_REVID=95441624
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java b/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java index 735a5e64ae..2ab75476ec 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/FilesystemValueChecker.java @@ -308,15 +308,11 @@ class FilesystemValueChecker { executor.execute(wrapper.wrap(new Runnable() { @Override public void run() { - if (value == null) { - // value will be null if the value is in error or part of a cycle. - // TODO(bazel-team): This is overly conservative. - batchResult.add(key, /*newValue=*/null); - return; - } - DirtyResult result = checker.check(key, value, tsgm); - if (result.isDirty()) { - batchResult.add(key, result.getNewValue()); + if (value != null) { + DirtyResult result = checker.check(key, value, tsgm); + if (result.isDirty()) { + batchResult.add(key, result.getNewValue()); + } } } })); |