chore: fix all build warnings and add stabilization roadmap

- Fix 3× ResultShadowed in cypher.nim, recovery.nim, shell.nim
- Remove 6× UnusedImport in test files
- Build is now clean: 0 warnings, 294 tests pass
- Add 4-week stabilization plan to PLAN.md (Sessions 9.1–9.4)
This commit is contained in:
2026-05-17 03:47:17 +03:00
parent 5231724e77
commit 07a22d305d
7 changed files with 87 additions and 15 deletions
+5 -5
View File
@@ -136,19 +136,19 @@ proc analyze*(rec: CrashRecovery): RecoveryResult =
return rec.result
proc recover*(rec: CrashRecovery, db: LSMTree = nil): RecoveryResult =
let result = rec.analyze()
let analysis = rec.analyze()
if not result.applied:
return result
if not analysis.applied:
return analysis
if db == nil:
return result
return analysis
# REDO: apply committed entries (txnId < lastCommitted) to LSM-Tree
var redoCount = 0
var undoCount = 0
for entry in rec.entries:
if entry.txnId < result.lastTxn:
if entry.txnId < analysis.lastTxn:
# Committed — redo
if entry.isDelete:
db.delete(entry.key)