Skip to content

Commit

Permalink
🎨 Data repo no longer automatically resets after corrupted siyuan-not…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Mar 12, 2024
1 parent c967ee0 commit 7cf60ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ func (repo *Repo) index0(memo string, context map[string]interface{}) (ret *enti
if nil != getErr {
logging.LogErrorf("get file [%s] failed: %s", fileID, getErr)
workerErrLock.Lock()
workerErrs = append(workerErrs, ErrNotFoundObject)
workerErrs = append(workerErrs, ErrRepoFatal)
workerErrLock.Unlock()
return
}
Expand Down Expand Up @@ -681,7 +681,7 @@ func (repo *Repo) index0(memo string, context map[string]interface{}) (ret *enti

if errors.Is(statErr, os.ErrNotExist) {
workerErrLock.Lock()
workerErrs = append(workerErrs, ErrNotFoundObject)
workerErrs = append(workerErrs, ErrRepoFatal)
workerErrLock.Unlock()
return
}
Expand Down

0 comments on commit 7cf60ef

Please sign in to comment.