Skip to content

Commit

Permalink
⚡ Improve data sync performance siyuan-note/siyuan#13216
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 21, 2024
1 parent e418aab commit 95e24cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func (repo *Repo) mergeSync(mergeResult *MergeResult, localChanged, needSyncClou
}
}

if localChanged && needSyncCloud {
if (localChanged && needSyncCloud) || "" == cloudLatest.ID {
err = repo.updateCloudIndexes(latest, trafficStat, context)
if nil != err {
logging.LogErrorf("update cloud indexes failed: %s", err)
Expand Down

0 comments on commit 95e24cd

Please sign in to comment.