mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-21 22:56:55 +00:00
refactor: Task J — legacy no-core paths explicitly labeled
Add explicit "LEGACY NO-CORE COMPATIBILITY" section header in block_recovery.go marking HandleAssignmentResult and HandleRemovedAssignments as compatibility-only entry points. The comment block explicitly states: - These are for pre-Phase-16 no-core paths and older tests - Core-present paths use StartRecoveryTask + ExecutePending* - These should NOT be strengthened into semantic-authority proofs No behavioral change — structural labeling only. All validation passes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e200df7791
commit
e075d77619
@@ -62,6 +62,14 @@ func NewRecoveryManager(bs *BlockService) *RecoveryManager {
|
||||
}
|
||||
}
|
||||
|
||||
// === LEGACY NO-CORE COMPATIBILITY ===
|
||||
//
|
||||
// The following methods (HandleAssignmentResult, HandleRemovedAssignments)
|
||||
// preserve pre-Phase-16 behavior for no-core paths and older tests.
|
||||
// Core-present paths use StartRecoveryTask + ExecutePendingCatchUp/Rebuild
|
||||
// instead. These legacy entry points should NOT be strengthened into
|
||||
// semantic-authority proofs — they are compatibility guards only.
|
||||
|
||||
// HandleAssignmentResult preserves the pre-16D behavior for no-core paths and
|
||||
// older tests: session creation/supersede results directly start recovery
|
||||
// goroutines. Core-present paths should use StartRecoveryTask instead.
|
||||
|
||||
Reference in New Issue
Block a user