Fix flush borrowing on checking operation
Some checks failed
continuous-integration/drone the build failed
Some checks failed
continuous-integration/drone the build failed
This commit is contained in:
parent
ea66727412
commit
6234022c0d
@ -168,8 +168,6 @@ fn wrapped_main() -> anyhow::Result<i32> {
|
|||||||
bail!("You need to specify either --shallow or --deep.");
|
bail!("You need to specify either --shallow or --deep.");
|
||||||
};
|
};
|
||||||
|
|
||||||
pile.flush()?;
|
|
||||||
|
|
||||||
if error_count > 0 {
|
if error_count > 0 {
|
||||||
eprintln!("THERE ARE {} ERRORS.", error_count);
|
eprintln!("THERE ARE {} ERRORS.", error_count);
|
||||||
return Ok(1);
|
return Ok(1);
|
||||||
|
@ -239,6 +239,7 @@ pub fn check_deep<RP: RawPile>(
|
|||||||
pile.raw_pile.delete(Keyspace::Chunk, &vacuum_id)?;
|
pile.raw_pile.delete(Keyspace::Chunk, &vacuum_id)?;
|
||||||
pbar.inc(1);
|
pbar.inc(1);
|
||||||
}
|
}
|
||||||
|
pile.flush()?;
|
||||||
pbar.finish_and_clear();
|
pbar.finish_and_clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -389,6 +390,7 @@ pub fn check_shallow<RP: RawPile>(
|
|||||||
pile.raw_pile.delete(Keyspace::Chunk, &vacuum_id)?;
|
pile.raw_pile.delete(Keyspace::Chunk, &vacuum_id)?;
|
||||||
pbar.inc(1);
|
pbar.inc(1);
|
||||||
}
|
}
|
||||||
|
pile.flush()?;
|
||||||
pbar.finish_and_clear();
|
pbar.finish_and_clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user