aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
diff options
context:
space:
mode:
authorGravatar Nathan Harmata <nharmata@google.com>2015-09-11 22:15:50 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-09-14 15:39:13 +0000
commit96be0c17f0f5576b6c16aa954590c0ecbadb2c8b (patch)
tree7734128fe10c6d62502757806923ea7dde629c23 /src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
parent1d74b680ff096ba593b4135f0d40cca1c261bd79 (diff)
Minor simple optimization in FileFunction: don't bother getting a FileStateValue for a path realpath 'parent/child' if 'parent' is known to not exist. This saves a stat for each ancestor path.
-- MOS_MIGRATED_REVID=102881929
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
index 3d06d7c01f..0be5c318c6 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/FileStateValue.java
@@ -175,8 +175,8 @@ public abstract class FileStateValue implements SkyValue {
String errorMessage = e.getMessage() != null
? "error '" + e.getMessage() + "'" : "an error";
throw new InconsistentFilesystemException("'stat' said " + path + " is a file but then we "
- + "later encountered " + errorMessage + " which indicates that " + path + " no longer "
- + "exists. Did you delete it during the build?");
+ + "later encountered " + errorMessage + " which indicates that " + path + " is no "
+ + "longer a file. Did you delete it during the build?");
}
}