Merge pull request #848 from dtynn/fix/wrong_symlink_flag_fro_import_presealed

use actual symlink flag
This commit is contained in:
Łukasz Magiera 2019-12-11 13:16:26 +01:00 committed by GitHub
commit e86fb2ef28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -692,15 +692,15 @@ func fallbackPostChallengeCount(sectors uint64) uint64 {
}
func (sb *SectorBuilder) ImportFrom(osb *SectorBuilder, symlink bool) error {
if err := migrate(osb.cacheDir, sb.cacheDir, true); err != nil {
if err := migrate(osb.cacheDir, sb.cacheDir, symlink); err != nil {
return err
}
if err := migrate(osb.sealedDir, sb.sealedDir, true); err != nil {
if err := migrate(osb.sealedDir, sb.sealedDir, symlink); err != nil {
return err
}
if err := migrate(osb.stagedDir, sb.stagedDir, true); err != nil {
if err := migrate(osb.stagedDir, sb.stagedDir, symlink); err != nil {
return err
}