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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user