chunk_store: reduce number of directories

Else, scans everything takes too long ...
This commit is contained in:
Dietmar Maurer
2018-12-22 14:04:05 +01:00
parent 15e9b4ed60
commit e95950e40a
2 changed files with 29 additions and 28 deletions

View File

@ -75,8 +75,11 @@ impl DataStore {
pub fn garbage_collection(&self) -> Result<(), Error> {
println!("Start GC phase1 (mark chunks)");
self.mark_used_chunks()?;
println!("Start GC phase2 (sweep unused chunks)");
self.chunk_store.sweep_used_chunks()?;
Ok(())