From fc07c93a19fe1e3785c2ddb69e7a5e03467013b7 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Tue, 11 Oct 2016 20:53:14 +0300 Subject: [PATCH] [vcs-log] replace flush after indexing each commit batch with single flush in the end --- .../intellij/vcs/log/data/index/VcsLogPersistentIndex.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java index dbfa8b9fe7af..402266529a5a 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java @@ -518,13 +518,15 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { counter.displayProgress(); }); + + flush(); } private boolean indexOneByOne(@NotNull VirtualFile root, @NotNull TIntHashSet commits) { VcsLogProvider provider = myProviders.get(root); try { storeDetails(provider.readFullDetails(root, TroveUtil.map(commits, value -> myHashMap.getCommitId(value).getHash().asString())), - true); + false); } catch (VcsException e) { LOG.error(e);