Skip to content

Commit

Permalink
🎨 Check local data chunk integrity before data synchronization siyuan…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 16, 2023
1 parent d239e78 commit da3d501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ func (repo *Repo) index(memo string, context map[string]interface{}) (ret *entit
// Check local data chunk integrity before data synchronization https://github.com/siyuan-note/siyuan/issues/8853
for _, chunk := range file.Chunks {
if _, statErr := repo.store.Stat(chunk); nil != statErr {
logging.LogErrorf("chunk [%s] not exist", chunk)
logging.LogErrorf("stat file [path=%s, size=%d, updated=%d] chunk [%s] failed: %s",
file.Path, file.Size, file.Updated, chunk, statErr)
workerErrLock.Lock()
workerErrs = append(workerErrs, ErrNotFoundObject)
workerErrLock.Unlock()
Expand Down

0 comments on commit da3d501

Please sign in to comment.