Browse Source

:art: 索引订正

Liang Ding 2 năm trước cách đây
mục cha
commit
4602976a8a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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) {