aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2015-06-15 08:10:47 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-06-15 10:52:04 +0000
commite03758bb808f37f7de9f07a8eb51081bbe95ae8b (patch)
treea61794532b6a9042b362012fa990021484deba70 /src/main/java/com/google/devtools/build
parente753ecf58281ad33dcf827462fce4f16596666e7 (diff)
Fix a bug in the ActionCacheChecker where the code that intended to remove outdated keys from the cache actually removed the correct one, so the cache never got cleaned up.
-- MOS_MIGRATED_REVID=95986001
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java b/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java
index c9c1ecbec3..1861988dfa 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java
@@ -224,7 +224,7 @@ public class ActionCacheChecker {
// Remove old records from the cache if they used different key.
String execPath = output.getExecPathString();
if (!key.equals(execPath)) {
- actionCache.remove(key);
+ actionCache.remove(execPath);
}
if (!metadataHandler.artifactOmitted(output)) {
// Output files *must* exist and be accessible after successful action execution.