diff --git a/consul/server.go b/consul/server.go index 7c41f20cd5..ee53cd8f94 100644 --- a/consul/server.go +++ b/consul/server.go @@ -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.LogOutput = s.config.LogOutput 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.RejoinAfterLeave = s.config.RejoinAfterLeave if wan {