mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🎨 数据同步增量索引
This commit is contained in:
parent
cbe45ada4d
commit
313181ef48
1 changed files with 2 additions and 1 deletions
|
|
@ -132,8 +132,9 @@ func incReindex(upserts, removes []string) {
|
||||||
util.PushEndlessProgress(msg)
|
util.PushEndlessProgress(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 先执行 remove,否则移动文档时 upsert 会被忽略,导致未被索引
|
logging.LogDebugf("sync reindex [upserts=%d, removes=%d]", len(upserts), len(removes))
|
||||||
|
|
||||||
|
// 先执行 remove,否则移动文档时 upsert 会被忽略,导致未被索引
|
||||||
for _, removeFile := range removes {
|
for _, removeFile := range removes {
|
||||||
if !strings.HasSuffix(removeFile, ".sy") {
|
if !strings.HasSuffix(removeFile, ".sy") {
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue