Skip to content

Commit

Permalink
Suspend indexer progress bar while committing at end of indexing too.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmart7t2 committed Jan 28, 2024
1 parent 2d56027 commit 8925451
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8925451

Please sign in to comment.