This commit is contained in:
Liang Ding
2023-01-26 23:30:29 +08:00
parent 78ed38a33a
commit df9122b664
16 changed files with 175 additions and 197 deletions

View File

@@ -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() {