mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rewriteIndexVersion atomically (followup for http://crucible.labs.intellij.net/cru/CR-IC-573)
This commit is contained in:
@@ -70,7 +70,7 @@ public class IndexInfrastructure {
|
||||
|
||||
private static volatile long ourLastStamp; // ensure any file index stamp increases
|
||||
|
||||
public static void rewriteVersion(final File file, final int version) throws IOException {
|
||||
public static synchronized void rewriteVersion(final File file, final int version) throws IOException {
|
||||
final long prevLastModifiedValue = file.lastModified();
|
||||
if (file.exists()) {
|
||||
FileUtil.delete(file);
|
||||
|
||||
Reference in New Issue
Block a user