Skip to content

Commit

Permalink
fix restore for object disk frozen_metadata.txt fix #752
Browse files Browse the repository at this point in the history
  • Loading branch information
Slach committed Oct 4, 2023
1 parent 02ac91d commit 1beb9f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.4.2
BUG FIXES
- fix restore for object disk frozen_metadata.txt fix [752](https://github.com/Altinity/clickhouse-backup/issues/752)

# v2.4.1
IMPROVEMENTS
- switch to go-1.21
Expand Down
2 changes: 1 addition & 1 deletion pkg/backup/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ func (b *Backuper) downloadObjectDiskParts(ctx context.Context, backupName strin
if err != nil {
return err
}
if objMeta.StorageObjectCount < 1 {
if objMeta.StorageObjectCount < 1 && objMeta.Version != object_disk.VersionRelativePath {
return fmt.Errorf("%s: invalid object_dist.Metadata: %#v", fPath, objMeta)
}
var srcBucket, srcKey string
Expand Down

0 comments on commit 1beb9f6

Please sign in to comment.