From 0e796a55827cf3a46d40ed7613b5a1fed7cb431d Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Tue, 5 Apr 2022 18:28:42 +0500 Subject: [PATCH] rm set NoSnapshotRestoreOnStart --- weed/server/raft_hashicorp.go | 1 - 1 file changed, 1 deletion(-) diff --git a/weed/server/raft_hashicorp.go b/weed/server/raft_hashicorp.go index 15efd5d56..f36899d5c 100644 --- a/weed/server/raft_hashicorp.go +++ b/weed/server/raft_hashicorp.go @@ -93,7 +93,6 @@ func NewHashicorpRaftServer(option *RaftServerOption) (*RaftServer, error) { c := raft.DefaultConfig() c.LocalID = raft.ServerID(s.serverAddr) // TODO maybee the IP:port address will change - c.NoSnapshotRestoreOnStart = option.RaftResumeState c.HeartbeatTimeout = time.Duration(float64(option.HeartbeatInterval) * (rand.Float64()*0.25 + 1)) c.ElectionTimeout = option.ElectionTimeout if c.LeaderLeaseTimeout > c.HeartbeatTimeout {