mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-22 18:33:34 +08:00
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>
This commit is contained in:
@@ -195,9 +195,6 @@ func (fs *FilerServer) checkWithMaster() {
|
|||||||
return fmt.Errorf("get master %s configuration: %v", master, err)
|
return fmt.Errorf("get master %s configuration: %v", master, err)
|
||||||
}
|
}
|
||||||
fs.metricsAddress, fs.metricsIntervalSec = resp.MetricsAddress, int(resp.MetricsIntervalSeconds)
|
fs.metricsAddress, fs.metricsIntervalSec = resp.MetricsAddress, int(resp.MetricsIntervalSeconds)
|
||||||
if fs.option.DefaultReplication == "" {
|
|
||||||
fs.option.DefaultReplication = resp.DefaultReplication
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if readErr == nil {
|
if readErr == nil {
|
||||||
|
Reference in New Issue
Block a user