From 04969a2282f639bd00b22143d3d1df59314bb5bc Mon Sep 17 00:00:00 2001 From: apfitzge Date: Mon, 13 Jun 2022 09:33:32 -0500 Subject: [PATCH] serialize snapshots dir first (#25889) --- runtime/src/snapshot_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 59c95abcbb..08295e7e9c 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -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")?;