Make FinalizeReplicaUpdate actually do cleanup
This commit is contained in:
parent
ea32b415f0
commit
ecc1f4b8f1
@ -13,6 +13,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"math/bits"
|
"math/bits"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
@ -885,8 +886,8 @@ func (sb *Sealer) FinalizeReplicaUpdate(ctx context.Context, sector storage.Sect
|
|||||||
}
|
}
|
||||||
defer done()
|
defer done()
|
||||||
|
|
||||||
if err := ffi.ClearCache(uint64(ssize), paths.UpdateCache); err != nil {
|
if err := os.Remove(filepath.Join(paths.UpdateCache, "sc-02-data-tree-d.dat")); err != nil {
|
||||||
return xerrors.Errorf("clear cache: %w", err)
|
return xerrors.Errorf("clear update cache: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user