Fixed vacuum

This commit is contained in:
Dennis Schwerdel 2017-04-17 11:04:36 +02:00
parent 1617fecb92
commit e9ea6cae19
1 changed files with 1 additions and 4 deletions

View File

@ -18,10 +18,7 @@ impl Repository {
info!("Locking repository"); info!("Locking repository");
try!(self.write_mode()); try!(self.write_mode());
let _lock = try!(self.lock(true)); let _lock = try!(self.lock(true));
if self.dirty { // analyze_usage will set the dirty flag
return Err(RepositoryError::Dirty)
}
try!(self.set_dirty());
info!("Analyzing chunk usage"); info!("Analyzing chunk usage");
let usage = try!(self.analyze_usage()); let usage = try!(self.analyze_usage());
let mut data_total = 0; let mut data_total = 0;