Merge pull request #11255 from Aloxaf/Aloxaf-patch-2

fix: sealing: typo in FinalizeReplicaUpdate
This commit is contained in:
Łukasz Magiera 2023-09-22 14:01:51 +02:00 committed by GitHub
commit 444da43228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -802,7 +802,7 @@ func (m *Manager) FinalizeReplicaUpdate(ctx context.Context, sector storiface.Se
{
unsealedStores, ferr := m.index.StorageFindSector(ctx, sector.ID, storiface.FTUnsealed, 0, false)
if err != nil {
if ferr != nil {
err = multierr.Append(err, xerrors.Errorf("find unsealed sector before move: %w", ferr))
} else if len(unsealedStores) > 0 {
// if we found unsealed files, AND have been asked to keep at least one piece, move unsealed