Skip to content

Commit

Permalink
serialize snapshots dir first (#25889)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Jun 13, 2022
1 parent 930fe8a commit 04969a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/snapshot_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ pub fn archive_snapshot_package(

let do_archive_files = |encoder: &mut dyn Write| -> Result<()> {
let mut archive = tar::Builder::new(encoder);
for dir in ["accounts", "snapshots"] {
for dir in ["snapshots", "accounts"] {
archive.append_dir_all(dir, staging_dir.as_ref().join(dir))?;
}
archive.append_path_with_name(staging_dir.as_ref().join("version"), "version")?;
Expand Down

0 comments on commit 04969a2

Please sign in to comment.