Skip to content

Commit 2f77f2e

Browse files
committed
🐛 Data repo index loss caused the kernel to exit Fix siyuan-note/siyuan#16590
1 parent 28126fa commit 2f77f2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sync.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,7 @@ func (repo *Repo) latestSync() (ret *entity.Index) {
15881588
ret, err = repo.store.GetIndex(hash)
15891589
if nil != err {
15901590
logging.LogWarnf("get latest sync index failed: %s", err)
1591+
ret = &entity.Index{}
15911592
return
15921593
}
15931594
logging.LogInfof("got latest sync [%s]", ret.String())

0 commit comments

Comments
 (0)