feat: evict analysis caches before exact min revision (#819)

This commit is contained in:
Myriad-Dreamin 2024-11-14 21:22:05 +08:00 committed by GitHub
parent b844240212
commit 4581d10703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1098,12 +1098,12 @@ impl RevisionManagerLike for AnalysisRevCache {
.expr_stage
.global
.lock()
.retain(|_, r| r.0 + 60 >= rev);
.retain(|_, r| r.0 >= rev);
self.default_slot
.type_check
.global
.lock()
.retain(|_, r| r.0 + 60 >= rev);
.retain(|_, r| r.0 >= rev);
}
}