Skip to content

Commit

Permalink
Fix backup clone command
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Jul 16, 2024
1 parent e505635 commit 2c85971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backup_clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func cloneBackup(ctx context.Context, srcVolumeClient, srcObjectClient, dstVolum
return nil, fmt.Errorf("error while transferring objects")
}

expectedObjectsCount := int64(*backupRecord.ObjectCount) + 1 // + metadata
expectedObjectsCount := int64(*backupRecord.ObjectCount) + 2 // + metadata and sha256file
// TODO: stats.FilesFound vs stats.FilesTransferred
if stats.FilesFound != expectedObjectsCount {
return nil, fmt.Errorf("error while transferring objects: an amount of transferred files doesn't correspond to an amount of file in the record: %d != %d", stats.FilesFound, expectedObjectsCount)
Expand Down

0 comments on commit 2c85971

Please sign in to comment.