aboutsummaryrefslogtreecommitdiff
path: root/weed/server/filer_server.go
diff options
context:
space:
mode:
authorLHHDZ <changlin.shi@ly.com>2023-03-16 13:10:39 +0800
committerGitHub <noreply@github.com>2023-03-15 22:10:39 -0700
commitd695119073a2e890aa8fe13087a1d7c73b7ed3e0 (patch)
tree744c5dd5ba275b05c6cf5c458eac6ac25c66535f /weed/server/filer_server.go
parent57ab1f851656276f62124c3dc5e3fc0d15eed646 (diff)
downloadseaweedfs-d695119073a2e890aa8fe13087a1d7c73b7ed3e0.tar.xz
seaweedfs-d695119073a2e890aa8fe13087a1d7c73b7ed3e0.zip
The filer does not set defaultReplication to the defaultReplication o… (#4315)
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 <changlin.shi@ly.com>
Diffstat (limited to 'weed/server/filer_server.go')
-rw-r--r--weed/server/filer_server.go3
1 files changed, 0 insertions, 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 {