mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 20:25:17 +01:00
🎨 迁出快照和同步数据生成冲突副本不再等待数据库事务执行
This commit is contained in:
parent
8a7df8af78
commit
bf31293395
1 changed files with 0 additions and 7 deletions
|
|
@ -49,7 +49,6 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/cache"
|
||||
"github.com/siyuan-note/siyuan/kernel/conf"
|
||||
"github.com/siyuan-note/siyuan/kernel/filesys"
|
||||
"github.com/siyuan-note/siyuan/kernel/sql"
|
||||
"github.com/siyuan-note/siyuan/kernel/task"
|
||||
"github.com/siyuan-note/siyuan/kernel/treenode"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
|
|
@ -523,7 +522,6 @@ func checkoutRepo(id string) {
|
|||
|
||||
util.PushEndlessProgress(Conf.Language(63))
|
||||
WaitForWritingFiles()
|
||||
sql.WaitForWritingDatabase()
|
||||
CloseWatchAssets()
|
||||
defer WatchAssets()
|
||||
|
||||
|
|
@ -941,7 +939,6 @@ func syncRepo(exit, byHand bool) (err error) {
|
|||
// 云端同步发生冲突时生成副本 https://github.com/siyuan-note/siyuan/issues/5687
|
||||
|
||||
luteEngine := NewLute()
|
||||
waitTx := false
|
||||
for _, file := range mergeResult.Conflicts {
|
||||
if !strings.HasSuffix(file.Path, ".sy") {
|
||||
continue
|
||||
|
|
@ -964,10 +961,6 @@ func syncRepo(exit, byHand bool) (err error) {
|
|||
|
||||
resetTree(tree, "Conflicted")
|
||||
createTreeTx(tree)
|
||||
waitTx = true
|
||||
}
|
||||
if waitTx {
|
||||
sql.WaitForWritingDatabase()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue