mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
IJPL-157442 Flush highlighting grave on disk before closing persistent map to prevent data loss
GitOrigin-RevId: 6dbdd130f1e306a1a48b621aff54a7a7e18f5e16
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0a7c79a9b8
commit
dde549a915
@@ -121,7 +121,9 @@ open class ManagedPersistentCache<K, V>(
|
||||
}
|
||||
|
||||
private fun close(persistentMap: PersistentMapBase<K, V>) {
|
||||
LOG.info("closing persistent map $name")
|
||||
try {
|
||||
persistentMap.force() // IJPL-157442 prevent data loss
|
||||
persistentMap.close()
|
||||
} catch (e: Exception) {
|
||||
LOG.warn("error closing persistent map $name", e)
|
||||
|
||||
Reference in New Issue
Block a user