Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Update specs-storage, sector removing support #53

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Conversation

magik6k
Copy link
Collaborator

@magik6k magik6k commented Jun 22, 2020

This PR will be needed for CC upgrade support in the FSM. Also allows for removing sectors, and has interfaces which will be used by unsealed-copy fast retrieval

@magik6k magik6k changed the title Update sector-storage, sector removing support Update specs-storage, sector removing support Jun 22, 2020
func (l *LocalWorker) Remove(ctx context.Context, sector abi.SectorID) error {
var err error

if rerr := l.storage.Remove(ctx, sector, stores.FTSealed, true); rerr != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the FTSealed is deleted, but the FTCache call fails - is there any mechanism for later cleaning up the FTUnsealed? or retrying the FTCache call?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently no, only manual user intervention

@magik6k magik6k merged commit 47d9335 into master Jun 23, 2020
@magik6k magik6k deleted the feat/remove-sector branch June 23, 2020 21:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants