mirror of https://github.com/status-im/consul.git
consul: disable serf snapshots in dev mode
This commit is contained in:
parent
9002bfa37d
commit
90566d4bde
|
@ -302,7 +302,9 @@ func (s *Server) setupSerf(conf *serf.Config, ch chan serf.Event, path string, w
|
||||||
conf.MemberlistConfig.LogOutput = s.config.LogOutput
|
conf.MemberlistConfig.LogOutput = s.config.LogOutput
|
||||||
conf.LogOutput = s.config.LogOutput
|
conf.LogOutput = s.config.LogOutput
|
||||||
conf.EventCh = ch
|
conf.EventCh = ch
|
||||||
conf.SnapshotPath = filepath.Join(s.config.DataDir, path)
|
if !s.config.DevMode {
|
||||||
|
conf.SnapshotPath = filepath.Join(s.config.DataDir, path)
|
||||||
|
}
|
||||||
conf.ProtocolVersion = protocolVersionMap[s.config.ProtocolVersion]
|
conf.ProtocolVersion = protocolVersionMap[s.config.ProtocolVersion]
|
||||||
conf.RejoinAfterLeave = s.config.RejoinAfterLeave
|
conf.RejoinAfterLeave = s.config.RejoinAfterLeave
|
||||||
if wan {
|
if wan {
|
||||||
|
|
Loading…
Reference in New Issue