volume: note why the role-call retry does not touch shipPrepared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-25 10:33:33 -08:00
1 parent a0b6a5da17
commit 49dcf2d22e
1 file changed
+3
+3
View File
@@ -538,6 +538,9 @@ func (h *Host) runRoleRetry(ctx context.Context) {
continue
}
role, epoch := h.selfRole, h.selfEpoch
// Re-applied directly, not through fenceSelfWithPeers: the desired
// role is unchanged, and shipPrepared was already cleared when this
// replica role was first taken there.
err := applySelfRoleWithPeers(h.selfFence, role, epoch, h.selfHasPeers)
h.latchRoleAdmission(role, epoch, err)
h.selfFenceMu.Unlock()