Consistently create temp dirs under ledger/farf (#10848)

This commit is contained in:
Ryo Onodera
2020-07-01 11:38:59 +09:00
committed by GitHub
parent 5adf6f6bde
commit b89e506cbb
5 changed files with 16 additions and 7 deletions

View File

@ -1341,7 +1341,7 @@ fn main() {
bank.clean_accounts();
bank.update_accounts_hash();
let temp_dir = tempfile::TempDir::new().unwrap_or_else(|err| {
let temp_dir = tempfile::tempdir_in(ledger_path).unwrap_or_else(|err| {
eprintln!("Unable to create temporary directory: {}", err);
exit(1);
});