[vcs-log] replace flush after indexing each commit batch with single flush in the end

This commit is contained in:
Julia Beliaeva
2016-11-10 20:12:25 +03:00
parent 28ee04d1a2
commit fc07c93a19
@@ -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);