Files
MemRelay/projects/25464650-ed5d-440e-b362-190f2852d451/Checkpoint 2026-09-30 07-08-32 UTC [92796e1a30].md
T
memrelay c66b576bc1 create: Checkpoint 2026-09-30 07:08:32 UTC [92796e1a30]
MemRelay-Operation: checkpoint-save:chk-fix-store-d01-d05-b6908cf-2
MemRelay-Resource: 3381eda3-2984-448a-9d59-484c1de66791
2026-09-30 15:08:39 +08:00

48 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-09-30 07:08:32 UTC [92796e1a30]
type: checkpoint
permalink: main/projects/25464650-ed5d-440e-b362-190f2852d451/checkpoint-2026-09-30-07-08-32-utc-92796e1a30
stable_id: 3381eda3-2984-448a-9d59-484c1de66791
scope: project
memory_type: checkpoint
project_id: 25464650-ed5d-440e-b362-190f2852d451
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: chk-fix-store-d01-d05-b6908cf-2
created_at: '2026-09-30T07:08:32.805986+00:00'
updated_at: '2026-09-30T07:08:32.805986+00:00'
tags:
- ready-to-merge
- lane/store
- D-01
- D-02
- D-04
- D-05
---
## 存储线复审修复 D-01/D-02/D-04/D-05 完成
- **线**:存储/配置/命令行/部署
- **分支**:feat/fix-store-d01-d05
- **工作树**:E:/code/NixMsg-wt/r2-d(未改主工作区,未删 fix3)
- **基于**:origin/main @ 4059a15
- **提交**:b6908cf fix: 修复写队列 busy 恢复、关闭安全、备份与配置构建问题
- **已推送**:origin/feat/fix-store-d01-d05(普通推送,未推 main、未强推、未 merge)
### 完成
- **D-01 (#27)**:runBatch 提交成功后 markReady,busy 后一次成功 Do 恢复 IsReady
- **D-02 (#28)**:Close 在写锁内关 channel,并发 Do 不 panic;关闭后 ErrQueueClosed。新增 ExecOnWriter/Checkpoint/Optimize。未改 message 包,checkpoint 调用留给 C-03
- **D-04 (#30)**:backup 库不存在报绝对路径错误、不建空库;chmod 0600;OPS 绝对路径 + 恢复须移走 db/wal/shm。未做 restore 命令
- **D-05 (#31)**:迁移备份 pre-migrate-v{from}-to-v{to}.db 复用;Taskfile/q.yml/Dockerfile ldflags 注入 Version(K-05 为 SDK 打包,无冲突);显式 grace_seconds:0 按 0 生效;max_frame_bytes<=786432;admin set-password 清空 admin_sessions。healthcheck 在 TLS 且不允许明文时走 HTTPS
### 未做
- **D-03 (#29)**:读连接池上限,依赖 C-01/C-02,按指示跳过。OpenReader 未改
- 未改 cmd/nixmsg/serve.go 的 messageLoops,未改 broker/message/group/web/sdk/listener 业务
### 验证
- go test ./internal/store/ ./internal/config/ ./cmd/nixmsg/ -count=1 通过
### 给下个会话
- rebase origin/main 后由总控 ff-merge;勿在 e:/code/NixMsg 主工作区改
- D-03 等 C-01/C-02 后再做