Browse Source

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>
pull/4318/head
LHHDZ 2 years ago
committed by GitHub
parent
commit
d695119073
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      weed/server/filer_server.go

3
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 {

Loading…
Cancel
Save