Make creating new snapshot.tar.bz2 truly-atomic (#6902) (#6909)

automerge
This commit is contained in:
mergify[bot]
2019-11-12 14:04:26 -08:00
committed by Grimes
parent 92ae07aa93
commit 5a0f892de4

View File

@ -115,7 +115,6 @@ impl SnapshotPackagerService {
// Once everything is successful, overwrite the previous tarball so that other validators
// can fetch this newly packaged snapshot
let _ = fs::remove_file(&snapshot_package.tar_output_file);
let metadata = fs::metadata(&archive_path)?;
fs::rename(&archive_path, &snapshot_package.tar_output_file)?;