Skip to content

Commit 2c85971

Browse files
committed
Fix backup clone command
1 parent e505635 commit 2c85971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/backup_clone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func cloneBackup(ctx context.Context, srcVolumeClient, srcObjectClient, dstVolum
194194
return nil, fmt.Errorf("error while transferring objects")
195195
}
196196

197-
expectedObjectsCount := int64(*backupRecord.ObjectCount) + 1 // + metadata
197+
expectedObjectsCount := int64(*backupRecord.ObjectCount) + 2 // + metadata and sha256file
198198
// TODO: stats.FilesFound vs stats.FilesTransferred
199199
if stats.FilesFound != expectedObjectsCount {
200200
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)

0 commit comments

Comments
 (0)