mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix wrong logic
This commit is contained in:
parent
fbd99d53c1
commit
376b005ad3
|
@ -168,7 +168,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
|
||||||
startFromTime := time.Now().Add(-filer.LogFlushInterval)
|
startFromTime := time.Now().Add(-filer.LogFlushInterval)
|
||||||
if isFresh {
|
if isFresh {
|
||||||
glog.V(0).Infof("%s bootstrap from peers %+v", option.Host, existingNodes)
|
glog.V(0).Infof("%s bootstrap from peers %+v", option.Host, existingNodes)
|
||||||
if err := fs.filer.MaybeBootstrapFromPeers(option.Host, existingNodes, startFromTime); err == nil {
|
if err := fs.filer.MaybeBootstrapFromPeers(option.Host, existingNodes, startFromTime); err != nil {
|
||||||
glog.Fatalf("%s bootstrap from %+v", option.Host, existingNodes)
|
glog.Fatalf("%s bootstrap from %+v", option.Host, existingNodes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue