garbage_collect: call fail_on_abort to abort GV when requested.

This commit is contained in:
Dietmar Maurer
2020-05-05 09:06:34 +02:00
parent 74f7240b8d
commit 99641a6bbb
4 changed files with 13 additions and 9 deletions

View File

@ -291,7 +291,7 @@ impl ChunkStore {
&self,
oldest_writer: i64,
status: &mut GarbageCollectionStatus,
worker: Arc<WorkerTask>,
worker: &WorkerTask,
) -> Result<(), Error> {
use nix::sys::stat::fstatat;
@ -314,6 +314,7 @@ impl ChunkStore {
worker.log(format!("percentage done: {}, chunk count: {}", percentage, chunk_count));
}
worker.fail_on_abort()?;
tools::fail_on_shutdown()?;
let (dirfd, entry) = match entry {