mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
🎨 Improve history database index https://github.com/siyuan-note/siyuan/issues/8506
This commit is contained in:
parent
eb941b36e4
commit
073af9a310
9 changed files with 16 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue