From 4003cd2832929b1c093f1f6e423a72a25d3ae1be Mon Sep 17 00:00:00 2001 From: "Aleksei.Cherepanov" Date: Mon, 26 Jul 2021 16:02:40 +0300 Subject: [PATCH] Fix backward compatibility of portable caches for 212 idea Write zero to deletedCount value of counters map instead of removing it in context of LookupStorage performance improving --- .../src/org/jetbrains/kotlin/incremental/LookupStorage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt b/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt index 05c087252f4..b3bfb2f94e4 100644 --- a/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt +++ b/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt @@ -126,7 +126,7 @@ open class LookupStorage( countersFile.createNewFile() } - countersFile.writeText("$size\n") + countersFile.writeText("$size\n0") } } finally { super.flush(memoryCachesOnly)