From 6f7834d7bfbb185dfafdf8f8de3792ebda658f45 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Wed, 28 Jun 2017 02:35:23 +0300 Subject: [PATCH] [vcs-log] flush when indexing ends in a finally block --- .../intellij/vcs/log/data/index/VcsLogPersistentIndex.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 4e85d1371c51..40c873df1ea6 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 @@ -585,6 +585,8 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { } report(startTime); + + flush(); } } @@ -631,8 +633,6 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { displayProgress(indicator); }); - - flush(); } public void indexAll(@NotNull ProgressIndicator indicator) throws VcsException { @@ -647,8 +647,6 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable { indicator.checkCanceled(); displayProgress(indicator); }); - - flush(); } public void displayProgress(@NotNull ProgressIndicator indicator) {