[vcs-log] replace flush after indexing each commit batch with single flush in the end
authorJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Tue, 11 Oct 2016 17:53:14 +0000 (20:53 +0300)
committerJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Thu, 10 Nov 2016 17:12:25 +0000 (20:12 +0300)
platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java

index dbfa8b9fe7af881b4bb5d39c604cf7dac419ce7f..402266529a5acfa48f714cd45b110bc84a1386fe 100644 (file)
@@ -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);