Browse Source

:art: 索引订正

Liang Ding 2 years ago
parent
commit
4602976a8a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      kernel/model/index_fix.go

+ 2 - 0
kernel/model/index_fix.go

@@ -21,6 +21,7 @@ import (
 	"os"
 	"path"
 	"path/filepath"
+	"runtime"
 	"strings"
 	"sync"
 	"time"
@@ -148,6 +149,7 @@ func autoFixIndex() {
 	util.PushStatusBar(Conf.Language(58))
 	sql.WaitForWritingDatabase()
 	util.PushStatusBar(Conf.Language(185))
+	runtime.GC()
 }
 
 func reindexTreeByUpdated(rootUpdatedMap, dbRootUpdatedMap map[string]string) {