文档:更新 DESIGN.md,使用英文注释和调整项目结构说明

This commit is contained in:
2025-10-09 01:33:22 +08:00
parent 6499464f1c
commit 8019f2d794
38 changed files with 4297 additions and 2750 deletions

View File

@@ -11,7 +11,7 @@ import (
"strconv"
"strings"
"code.tczkiot.com/srdb"
"code.tczkiot.com/wlw/srdb"
)
//go:embed static
@@ -94,7 +94,7 @@ func (ui *WebUI) handleListTables(w http.ResponseWriter, r *http.Request) {
tables = append(tables, TableListItem{
Name: name,
CreatedAt: table.GetCreatedAt(),
CreatedAt: 0, // TODO: Table 不再有 createdAt 字段
Fields: fields,
})
}
@@ -193,8 +193,7 @@ func (ui *WebUI) handleTableManifest(w http.ResponseWriter, r *http.Request, tab
return
}
engine := table.GetEngine()
versionSet := engine.GetVersionSet()
versionSet := table.GetVersionSet()
version := versionSet.GetCurrent()
// 构建每层的信息
@@ -216,7 +215,7 @@ func (ui *WebUI) handleTableManifest(w http.ResponseWriter, r *http.Request, tab
}
// 获取 Compaction Manager 和 Picker
compactionMgr := engine.GetCompactionManager()
compactionMgr := table.GetCompactionManager()
picker := compactionMgr.GetPicker()
levels := make([]LevelInfo, 0)