Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-01-08 23:15:29 +08:00
commit 5bc1367b1c
6 changed files with 13 additions and 7 deletions

View file

@ -1050,6 +1050,7 @@
"179": "The disk space may be insufficient. It is recommended to keep the free space of the disk where the workspace is located at more than twice the size of data",
"180": "Search content block does not exist",
"181": "The document has been shared to Liandi, <a href=\"%s\" target=\"_blank\">click to view</a>",
"182": "Sharing document, please wait..."
"182": "Sharing document, please wait...",
"183": "Validating index document tree [%s]"
}
}

View file

@ -1050,6 +1050,7 @@
"179": "El espacio en disco puede ser insuficiente. Se recomienda mantener el espacio libre del disco donde se encuentra el espacio de trabajo en más del doble del tamaño de los datos",
"180": "El bloque de contenido de búsqueda no existe",
"181": "El documento ha sido compartido con Liandi, <a href=\"%s\" target=\"_blank\">haga clic para ver</a>",
"182": "Compartiendo documento, por favor espere..."
"182": "Compartiendo documento, por favor espere...",
"183": "Validando el árbol del documento de índice [%s]"
}
}

View file

@ -1050,6 +1050,7 @@
"179": "L'espace disque peut être insuffisant. Il est recommandé de conserver l'espace libre du disque où se trouve l'espace de travail à plus de deux fois la taille des données",
"180": "Le bloc de contenu de recherche n'existe pas",
"181": "Le document a été partagé avec Liandi, <a href=\"%s\" target=\"_blank\">cliquez pour afficher</a>",
"182": "Partage du document, veuillez patienter..."
"182": "Partage du document, veuillez patienter...",
"183": "Validation de l'arborescence du document d'index [%s]"
}
}

View file

@ -1050,6 +1050,7 @@
"179": "磁碟空間可能不足,建議保持工作空間所在磁碟可用空間為 data 大小的 2 倍以上",
"180": "不存在符合條件的內容塊",
"181": "已分享文檔到鏈滴,<a href=\"%s\" target=\"_blank\">點擊查看</a>",
"182": "正在分享文檔,請稍等..."
"182": "正在分享文檔,請稍等...",
"183": "正在校驗索引文檔樹 [%s]"
}
}

View file

@ -1050,6 +1050,7 @@
"179": "磁盘空间可能不足,建议保持工作空间所在磁盘可用空间为 data 大小的 2 倍以上",
"180": "不存在符合条件的内容块",
"181": "已分享文档到链滴,<a href=\"%s\" target=\"_blank\">点击查看</a>",
"182": "正在分享文档,请稍等..."
"182": "正在分享文档,请稍等...",
"183": "正在校验索引文档树 [%s]"
}
}

View file

@ -20,6 +20,7 @@ import (
"bytes"
"errors"
"fmt"
"path"
"path/filepath"
"strings"
"sync"
@ -1218,6 +1219,7 @@ func updateRefText(refNode *ast.Node, changedDefNodes map[string]*ast.Node) (cha
return
}
// AutoFixIndex 自动校验数据库索引 https://github.com/siyuan-note/siyuan/issues/7016
func AutoFixIndex() {
for {
autoFixIndex()
@ -1257,7 +1259,6 @@ func autoFixIndex() {
continue
}
}
}
func reindexTree(rootID string) {
@ -1274,5 +1275,5 @@ func reindexTree(rootID string) {
treenode.ReindexBlockTree(tree)
sql.UpsertTreeQueue(tree)
util.PushStatusBar(fmt.Sprintf("Reindexing tree [%s]", tree.HPath))
util.PushStatusBar(fmt.Sprintf(Conf.Language(183), path.Base(tree.HPath)))
}