Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ private static CompactPersistentActionCache create(
* <p>Backported from https://github.com/bazelbuild/bazel/pull/27525 (Bazel 9.0.0).
*/
private static void deleteUnrecognizedFiles(Path cacheRoot) throws IOException {
if (!cacheRoot.exists()) {
return;
}
Path indexFile = cacheRoot.getChild("filename_index_v" + VERSION + ".blaze");
Path indexJournalFile = cacheRoot.getChild("filename_index_v" + VERSION + ".journal");
ImmutableSet<Path> knownFiles =
Expand Down
Loading