mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
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:
1 parent
a0b6a5da17
commit
49dcf2d22e
1 file changed
+3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user