From 892545138bf39b54fe45e52f74cd79951ab3b46a Mon Sep 17 00:00:00 2001 From: Greg Martin Date: Sun, 28 Jan 2024 11:46:12 +0000 Subject: [PATCH] Suspend indexer progress bar while committing at end of indexing too. --- src/index/updater.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index/updater.rs b/src/index/updater.rs index d13063d0f7..7a6df6437d 100644 --- a/src/index/updater.rs +++ b/src/index/updater.rs @@ -157,7 +157,13 @@ impl<'index> Updater<'_> { } if uncommitted > 0 { - self.commit(wtx, value_cache, progress_bar.is_some())?; + if progress_bar.is_some() { + progress_bar.clone().unwrap().suspend(|| { + self.commit(wtx, value_cache, true) + })?; + } else { + self.commit(wtx, value_cache, false)? + } } if let Some(progress_bar) = &mut progress_bar {