src/backup/datastore.rs: pass WorkerTask to GC

So that we can log to the task log file.
This commit is contained in:
Dietmar Maurer
2019-04-06 17:57:38 +02:00
parent 35950380a9
commit d4b59ae0b8
2 changed files with 10 additions and 9 deletions

View File

@ -301,7 +301,7 @@ fn start_garbage_collection(
"garbage_collection", Some(store.clone()), "root@pam", to_stdout, move |worker|
{
worker.log(format!("starting garbage collection on store {}", store));
datastore.garbage_collection()
datastore.garbage_collection(worker)
})?;
Ok(json!(upid_str))