diff options
author | Philipp Wollermann <philwo@google.com> | 2015-06-15 08:10:47 +0000 |
---|---|---|
committer | Han-Wen Nienhuys <hanwen@google.com> | 2015-06-15 10:52:04 +0000 |
commit | e03758bb808f37f7de9f07a8eb51081bbe95ae8b (patch) | |
tree | a61794532b6a9042b362012fa990021484deba70 /src/main/java/com/google/devtools/build | |
parent | e753ecf58281ad33dcf827462fce4f16596666e7 (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.java | 2 |
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. |