mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -53,11 +53,8 @@ type dbQueueOperation struct {
|
||||
renameTreeOldHPath string // rename
|
||||
}
|
||||
|
||||
func AutoFlushTx() {
|
||||
for {
|
||||
time.Sleep(util.SQLFlushInterval)
|
||||
task.AppendTask(task.DatabaseIndexCommit, FlushQueue)
|
||||
}
|
||||
func FlushTxJob() {
|
||||
task.AppendTask(task.DatabaseIndexCommit, FlushQueue)
|
||||
}
|
||||
|
||||
func WaitForWritingDatabase() {
|
||||
|
||||
Reference in New Issue
Block a user