From d695119073a2e890aa8fe13087a1d7c73b7ed3e0 Mon Sep 17 00:00:00 2001 From: LHHDZ Date: Thu, 16 Mar 2023 13:10:39 +0800 Subject: [PATCH] =?UTF-8?q?The=20filer=20does=20not=20set=20defaultReplica?= =?UTF-8?q?tion=20to=20the=20defaultReplication=20o=E2=80=A6=20(#4315)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The filer does not set defaultReplication to the defaultReplication of the master (it is not necessary, because if the filer is not set, the configuration of the master will be used when calling Assign), otherwise, when the defaultReplication of the master is modified and all master nodes are restarted, the defaultReplication will not take effect (because the filer Keep the previous defaultReplication setting from the master) Signed-off-by: changlin.shi --- weed/server/filer_server.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go index cc4b8e6b2..77b8c3873 100644 --- a/weed/server/filer_server.go +++ b/weed/server/filer_server.go @@ -195,9 +195,6 @@ func (fs *FilerServer) checkWithMaster() { return fmt.Errorf("get master %s configuration: %v", master, err) } fs.metricsAddress, fs.metricsIntervalSec = resp.MetricsAddress, int(resp.MetricsIntervalSeconds) - if fs.option.DefaultReplication == "" { - fs.option.DefaultReplication = resp.DefaultReplication - } return nil }) if readErr == nil {