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");
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;