Skip to content

Commit

Permalink
Fix int64 to uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Dec 12, 2024
1 parent 0f3e0e8 commit 30e8dde
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) + 2 // + metadata and sha256file
expectedObjectsCount := uint64(*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 30e8dde

Please sign in to comment.