mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] replace flush after indexing each commit batch with single flush in the end
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user