Merge pull request #848 from dtynn/fix/wrong_symlink_flag_fro_import_presealed
use actual symlink flag
This commit is contained in:
commit
e86fb2ef28
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user