This commit is contained in:
Daniel 2023-06-09 13:02:21 +08:00
parent eb941b36e4
commit 073af9a310
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
9 changed files with 16 additions and 8 deletions

View file

@ -564,7 +564,12 @@ func getHistoryDir(suffix string, t time.Time) (ret string, err error) {
return
}
func ReindexHistory() (err error) {
func ReindexHistory() {
task.AppendTask(task.HistoryDatabaseIndexFull, fullReindexHistory)
return
}
func fullReindexHistory() {
historyDirs, err := os.ReadDir(util.HistoryDir)
if nil != err {
logging.LogErrorf("read history dir [%s] failed: %s", util.HistoryDir, err)