From 563849adecf6c6cf303c3b431abf4123d761b82b Mon Sep 17 00:00:00 2001 From: kayrus Date: Thu, 12 Dec 2024 11:45:21 +0100 Subject: [PATCH] Fix int64 to uint64 --- pkg/backup_clone.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/backup_clone.go b/pkg/backup_clone.go index d1d5806..956e083 100644 --- a/pkg/backup_clone.go +++ b/pkg/backup_clone.go @@ -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)