Merge pull request #953 from filecoin-project/fix/sb-getpath

sectorbuilder: Fix getpath
This commit is contained in:
Jakub Sztandera 2019-12-17 12:00:51 +01:00 committed by GitHub
commit 54fe4f748e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ func (sb *SectorBuilder) GetPath(typ string, sectorName string) (string, error)
return "", xerrors.Errorf("unknown sector type: %s", typ) return "", xerrors.Errorf("unknown sector type: %s", typ)
} }
return sb.filesystem.pathFor(dataType(typ)), nil return filepath.Join(sb.filesystem.pathFor(dataType(typ)), sectorName), nil
} }
func (sb *SectorBuilder) TrimCache(sectorID uint64) error { func (sb *SectorBuilder) TrimCache(sectorID uint64) error {