mirror of https://github.com/dswd/zvault
Fixed vacuum
This commit is contained in:
parent
1617fecb92
commit
e9ea6cae19
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue