From e9ea6cae193e62f3ba4461b83fff08fc3e3ec95c Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Mon, 17 Apr 2017 11:04:36 +0200 Subject: [PATCH] Fixed vacuum --- src/repository/vacuum.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/repository/vacuum.rs b/src/repository/vacuum.rs index 73338f6..3b95b80 100644 --- a/src/repository/vacuum.rs +++ b/src/repository/vacuum.rs @@ -18,10 +18,7 @@ impl Repository { info!("Locking repository"); try!(self.write_mode()); let _lock = try!(self.lock(true)); - if self.dirty { - return Err(RepositoryError::Dirty) - } - try!(self.set_dirty()); + // analyze_usage will set the dirty flag info!("Analyzing chunk usage"); let usage = try!(self.analyze_usage()); let mut data_total = 0;