diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json index 3867f6df0..806a2a4ff 100644 --- a/app/appearance/langs/en_US.json +++ b/app/appearance/langs/en_US.json @@ -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, click to view", - "182": "Sharing document, please wait..." + "182": "Sharing document, please wait...", + "183": "Validating index document tree [%s]" } } diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json index 42b6612cd..1235f3f9f 100644 --- a/app/appearance/langs/es_ES.json +++ b/app/appearance/langs/es_ES.json @@ -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, haga clic para ver", - "182": "Compartiendo documento, por favor espere..." + "182": "Compartiendo documento, por favor espere...", + "183": "Validando el árbol del documento de índice [%s]" } } diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json index 25a8a17c0..899d04cdd 100644 --- a/app/appearance/langs/fr_FR.json +++ b/app/appearance/langs/fr_FR.json @@ -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, cliquez pour afficher", - "182": "Partage du document, veuillez patienter..." + "182": "Partage du document, veuillez patienter...", + "183": "Validation de l'arborescence du document d'index [%s]" } } diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json index be5595830..035de57ab 100644 --- a/app/appearance/langs/zh_CHT.json +++ b/app/appearance/langs/zh_CHT.json @@ -1050,6 +1050,7 @@ "179": "磁碟空間可能不足,建議保持工作空間所在磁碟可用空間為 data 大小的 2 倍以上", "180": "不存在符合條件的內容塊", "181": "已分享文檔到鏈滴,點擊查看", - "182": "正在分享文檔,請稍等..." + "182": "正在分享文檔,請稍等...", + "183": "正在校驗索引文檔樹 [%s]" } } diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json index 66e594ac8..292099f6c 100644 --- a/app/appearance/langs/zh_CN.json +++ b/app/appearance/langs/zh_CN.json @@ -1050,6 +1050,7 @@ "179": "磁盘空间可能不足,建议保持工作空间所在磁盘可用空间为 data 大小的 2 倍以上", "180": "不存在符合条件的内容块", "181": "已分享文档到链滴,点击查看", - "182": "正在分享文档,请稍等..." + "182": "正在分享文档,请稍等...", + "183": "正在校验索引文档树 [%s]" } } diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go index 7c70ada93..727ca49b4 100644 --- a/kernel/model/transaction.go +++ b/kernel/model/transaction.go @@ -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))) }