Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPS-1465 Fix asrestore reader initialization #201

Merged
merged 2 commits into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions cmd/internal/app/asrestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,12 @@ func splitList(list []string) (asbList, asbxList []string, err error) {
}
}

// We sort asb files by prefix and suffix to restore them in the correct order.
asbList, err = util.SortBackupFiles(asbList)
if err != nil {
return nil, nil, fmt.Errorf("failed to sort asb files: %w", err)
if len(asbxList) > 0 {
// We sort asbx files by prefix and suffix to restore them in the correct order.
asbxList, err = util.SortBackupFiles(asbxList)
if err != nil {
return nil, nil, fmt.Errorf("failed to sort asbx files: %w", err)
}
}

return asbList, asbxList, nil
Expand Down
Loading