This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch jira672
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 3fe60ba8311346138f7042c10f13f464bb8b6148
Author: HTHou <[email protected]>
AuthorDate: Thu Jun 4 10:59:50 2020 +0800

    update docs
---
 docs/SystemDesign/SchemaManager/SchemaManager.md    | 3 ++-
 docs/zh/SystemDesign/SchemaManager/SchemaManager.md | 6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/docs/SystemDesign/SchemaManager/SchemaManager.md 
b/docs/SystemDesign/SchemaManager/SchemaManager.md
index cec2c86..7cac937 100644
--- a/docs/SystemDesign/SchemaManager/SchemaManager.md
+++ b/docs/SystemDesign/SchemaManager/SchemaManager.md
@@ -55,11 +55,12 @@ In the process of initializing, MManager will replay the 
mlog to load the metada
                * if succeed
                        * delete the LeafMNode
                        * read tlog using offset in the LeafMNode, update tag 
inverted index
-                       * if the storage group becomes empty after deleting, 
return the name of it
+                       * if the storage group becomes empty after deleting, 
record its name
                * if failed
                        * return the full path of failed timeseries
        * iterate the returned empty storage group list, and delete them
        * if not restart
+          * delete the recorded empty storage group
                * persist log into mlog
                * currently, we won't delete the tag/attribute info of that 
timeseries in tlog
        
diff --git a/docs/zh/SystemDesign/SchemaManager/SchemaManager.md 
b/docs/zh/SystemDesign/SchemaManager/SchemaManager.md
index 8a4cba2..f884ebc 100644
--- a/docs/zh/SystemDesign/SchemaManager/SchemaManager.md
+++ b/docs/zh/SystemDesign/SchemaManager/SchemaManager.md
@@ -54,11 +54,11 @@ IoTDB 的元数据统一由 MManger 管理,包括以下几个部分:
                * 若获取成功
                        * 删除MTree中对应的LeafMNode
                        * 根据LeafMNode中的offset,读取标签文件,更新 tagIndex 索引
-                       * 若发现某一个存储组为空,则返回为空的存储组名
+                       * 若发现某一个存储组为空,则记录下该空的存储组名
                * 若获取失败
                        * 返回此未删除成功的时间序列
-       * 遍历上一步返回的为空的存储组,依次删除
        * 如果非重启(需要记录日志)
+             *  删除记录下的空的存储组
                * 将所删除的时间序列信息记录到 mlog 中
                * 目前并不会删除 tlog 中关于此时间序列的标签/属性信息。
        
@@ -232,3 +232,5 @@ IoTDB 的元数据管理采用目录树的形式,倒数第二层为设备层
 
 > tagsSize (tag1=v1, tag2=v2) attributesSize (attr1=v1, attr2=v2)
 
+## 系统重启
+当系统重启的时候,会逐条重做一遍mlog中记录的日志。

Reply via email to