Control whether to renumber the working set when rebuilding it

This commit is contained in:
Dustin J. Mitchell
2021-01-02 14:40:05 -05:00
parent b62370c150
commit dc2df10158
8 changed files with 135 additions and 44 deletions

View File

@@ -4,7 +4,7 @@ use termcolor::WriteColor;
pub(crate) fn execute<W: WriteColor>(w: &mut W, replica: &mut Replica) -> Fallible<()> {
log::debug!("rebuilding working set");
replica.rebuild_working_set()?;
replica.rebuild_working_set(true)?;
writeln!(w, "garbage collected.")?;
Ok(())
}