From 376b005ad3357a26a40d4e75b793ca89fc866b9e Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 31 May 2022 11:55:58 -0700 Subject: [PATCH] fix wrong logic --- weed/server/filer_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go index d2c1d67f5..9292d9e06 100644 --- a/weed/server/filer_server.go +++ b/weed/server/filer_server.go @@ -168,7 +168,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) startFromTime := time.Now().Add(-filer.LogFlushInterval) if isFresh { 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) } }