abort GC on server shutdown

This commit is contained in:
Dietmar Maurer
2019-04-01 12:13:02 +02:00
parent 9136f857cc
commit 92da93b245
5 changed files with 18 additions and 0 deletions

View File

@ -147,6 +147,8 @@ impl FixedIndexReader {
for pos in 0..index_count {
tools::fail_on_shutdown()?;
let digest = self.index_digest(pos).unwrap();
if let Err(err) = self.store.touch_chunk(digest) {
bail!("unable to access chunk {}, required by {:?} - {}",