From 0b8fdab1e397f8bdb02a9aa38e143f405ea5adb7 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 17 Dec 2025 12:23:22 -0800 Subject: [PATCH] fix: initialize missing MasterOptions fields in master.follower (#7808) Fix nil pointer dereference panic when starting master.follower. The init() function was missing initialization for: - maxParallelVacuumPerServer - telemetryUrl - telemetryEnabled These fields are dereferenced in toMasterOption() causing a panic. Fixes #7806 --- weed/command/master_follower.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/command/master_follower.go b/weed/command/master_follower.go index ebd075283..8a1ecb3fe 100644 --- a/weed/command/master_follower.go +++ b/weed/command/master_follower.go @@ -41,6 +41,9 @@ func init() { mf.metricsAddress = aws.String("") mf.metricsIntervalSec = aws.Int(0) mf.raftResumeState = aws.Bool(false) + mf.maxParallelVacuumPerServer = aws.Int(1) + mf.telemetryUrl = aws.String("") + mf.telemetryEnabled = aws.Bool(false) } var cmdMasterFollower = &Command{