Unverified Commit 4103afa8 authored by Whyrusleeping's avatar Whyrusleeping Committed by GitHub
Browse files

Merge pull request #67 from filecoin-project/feat/dont-fail-copy

dont fail copy on not found error
parents 730fec46 3f064979
...@@ -724,6 +724,10 @@ func (sb *SectorBuilder) ImportFrom(osb *SectorBuilder, symlink bool) error { ...@@ -724,6 +724,10 @@ func (sb *SectorBuilder) ImportFrom(osb *SectorBuilder, symlink bool) error {
val, err := osb.ds.Get(lastSectorIdKey) val, err := osb.ds.Get(lastSectorIdKey)
if err != nil { if err != nil {
if err == datastore.ErrNotFound {
log.Warnf("CAUTION: last sector ID not found in previous datastore")
return nil
}
return err return err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment