Skip to content

Commit 4c5132c

Browse files
Slachnguyenminhduc9988
authored andcommitted
fix TestHardlinksExistsFiles for 25.8, add chmod 0640 for --hardlink-exists-files during download and restore_remote, fix #1164
Signed-off-by: Slach <[email protected]>
1 parent 059795e commit 4c5132c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ IMPROVEMENTS
1111
BUG FIXES
1212
- fix restore schema on cluster for VIEW, fix [1199](https://github.com/Altinity/clickhouse-backup/issues/1199).
1313
- disable free space check when using `--hardlink-exists-files`, fix [1198](https://github.com/Altinity/clickhouse-backup/issues/1198)
14+
- add chmod 0640 for `--hardlink-exists-files` during `download` and `restore_remote`, fix [1164](https://github.com/Altinity/clickhouse-backup/issues/1164)
1415

1516
# v2.6.33
1617
BUG FIXES

pkg/backup/download.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,9 @@ func (b *Backuper) makePartHardlinks(exists, new string) error {
12881288
return err
12891289
}
12901290
}
1291+
if err = os.Chmod(newF, 0640); err != nil {
1292+
return err
1293+
}
12911294
return nil
12921295
}); walkErr != nil {
12931296
log.Warn().Msgf("Link recursively %s -> %s return error: %v", new, exists, walkErr)

0 commit comments

Comments
 (0)