From 6c0073442d13d49e43db29edd577220354acdef9 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sun, 15 Nov 2026 11:15:37 -0800 Subject: [PATCH] volume: set the incarnation after the Host literal (gofmt, no realignment) Co-Authored-By: Claude Opus 5.5 --- seaweed-block/core/host/volume/host.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/seaweed-block/core/host/volume/host.go b/seaweed-block/core/host/volume/host.go index 217b2ae1ef..e7adbee4d8 100644 --- a/seaweed-block/core/host/volume/host.go +++ b/seaweed-block/core/host/volume/host.go @@ -92,10 +92,11 @@ type replicaSetUpdater interface { // Host is the composed volume-side block product daemon. type Host struct { - cfg Config // incarnation is new on every process start and reported in every // heartbeat, so the master can tell a restart from a long silence. incarnation string + + cfg Config log *log.Logger exec *noopExecutor t1exec *HealthyPathExecutor @@ -238,7 +239,6 @@ func New(cfg Config) (*Host, error) { h := &Host{ cfg: cfg, - incarnation: newIncarnation(), log: lg, exec: noopExec, t1exec: t1Exec, @@ -248,6 +248,7 @@ func New(cfg Config) (*Host, error) { obsCli: control.NewObservationServiceClient(conn), asnCli: control.NewAssignmentServiceClient(conn), } + h.incarnation = newIncarnation() if cfg.ReplicationVolume != nil { h.setReplicationLocked(cfg.ReplicationVolume) }