Use AtomicAppendVecId type alias in verify_and_unarchive_snapshot() (#34019)

This commit is contained in:
Brooks 2023-11-12 00:01:17 -05:00 committed by GitHub
parent e457c02879
commit ae30572585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -36,7 +36,7 @@ use {
path::{Path, PathBuf},
process::ExitStatus,
str::FromStr,
sync::{atomic::AtomicU32, Arc, Mutex},
sync::{Arc, Mutex},
thread::{Builder, JoinHandle},
},
tar::{self, Archive},
@ -1234,7 +1234,11 @@ pub fn verify_and_unarchive_snapshots(
full_snapshot_archive_info: &FullSnapshotArchiveInfo,
incremental_snapshot_archive_info: Option<&IncrementalSnapshotArchiveInfo>,
account_paths: &[PathBuf],
) -> Result<(UnarchivedSnapshot, Option<UnarchivedSnapshot>, AtomicU32)> {
) -> Result<(
UnarchivedSnapshot,
Option<UnarchivedSnapshot>,
AtomicAppendVecId,
)> {
check_are_snapshots_compatible(
full_snapshot_archive_info,
incremental_snapshot_archive_info,