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 0f1facb7c9a0..efb8b63153f0 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 @@ -132,7 +132,7 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { mySingleTaskController.request(new IndexingRequest(commitsToIndex, full)); } - private void storeDetails(@NotNull List details, boolean flush) { + private void storeDetails(@NotNull List details) { if (myIndexStorage == null) return; try { for (VcsFullCommitDetails detail : details) { @@ -145,9 +145,6 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { myIndexStorage.commits.put(index); } - if (flush) { - flush(); - } } catch (IOException e) { myFatalErrorsConsumer.consume(this, e); @@ -518,8 +515,7 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { 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())), - false); + storeDetails(provider.readFullDetails(root, TroveUtil.map(commits, value -> myHashMap.getCommitId(value).getHash().asString()))); } catch (VcsException e) { LOG.error(e); @@ -554,7 +550,7 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { myProviders.get(root).readAllFullDetails(root, details -> { int index = myHashMap.getCommitIndex(details.getId(), details.getRoot()); if (notIndexed.contains(index)) { - storeDetails(Collections.singletonList(details), false); + storeDetails(Collections.singletonList(details)); counter.newIndexedCommits++; }