From 49dcf2d22ebb612af3027f77c48dd65c4f45ff01 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Wed, 25 Nov 2026 10:33:33 -0800 Subject: [PATCH] volume: note why the role-call retry does not touch shipPrepared Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/host/volume/host.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seaweed-block/core/host/volume/host.go b/seaweed-block/core/host/volume/host.go index 9bff5abffa..9214863741 100644 --- a/seaweed-block/core/host/volume/host.go +++ b/seaweed-block/core/host/volume/host.go @@ -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()