This commit is contained in:
whyrusleeping 2019-12-10 09:32:50 -08:00
parent 08cc689293
commit 4d86a4bd4a
2 changed files with 4 additions and 4 deletions

View File

@ -268,7 +268,7 @@ var aggregateSectorDirsCmd = &cli.Command{
return err
}
if err := agsb.ImportFrom(sb); err != nil {
if err := agsb.ImportFrom(sb, false); err != nil {
return xerrors.Errorf("importing sectors from %q failed: %w", dir, err)
}
}

View File

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