aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions/cache/ActionCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/cache/ActionCache.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/cache/ActionCache.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/cache/ActionCache.java b/src/main/java/com/google/devtools/build/lib/actions/cache/ActionCache.java
index fc21b41a2d..c6ab5604a2 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/cache/ActionCache.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/cache/ActionCache.java
@@ -18,6 +18,7 @@ import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
+import com.google.devtools.build.lib.actions.FileArtifactValue;
import com.google.devtools.build.lib.actions.cache.Protos.ActionCacheStatistics;
import com.google.devtools.build.lib.actions.cache.Protos.ActionCacheStatistics.MissReason;
import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadCompatible;
@@ -79,7 +80,7 @@ public interface ActionCache {
// Null iff the corresponding action does not do input discovery.
private final List<String> files;
// If null, md5Digest is non-null and the entry is immutable.
- private Map<String, Metadata> mdMap;
+ private Map<String, FileArtifactValue> mdMap;
private Md5Digest md5Digest;
private final Md5Digest usedClientEnvDigest;
@@ -103,10 +104,10 @@ public interface ActionCache {
}
/**
- * Adds the artifact, specified by the executable relative path and its
- * metadata into the cache entry.
+ * Adds the artifact, specified by the executable relative path and its metadata into the cache
+ * entry.
*/
- public void addFile(PathFragment relativePath, Metadata md) {
+ public void addFile(PathFragment relativePath, FileArtifactValue md) {
Preconditions.checkState(mdMap != null);
Preconditions.checkState(!isCorrupted());
Preconditions.checkState(md5Digest == null);