Apply suggestions from code review

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
pull/21700/head
Dhia Ayachi 2 months ago committed by GitHub
parent 82225d49e5
commit 7213782ab7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1056,7 +1056,7 @@ func (s *Server) setupRaft() error {
return nil
}
// Default to WAL if there is no existing raft.db, even if it's enabled. Log a warning otherwise
// Default to WAL. Only use WAL if there is no existing raft.db, even if it's enabled. Log a warning otherwise
if s.config.LogStoreConfig.Backend == LogStoreBackendDefault && !boltFileExists {
s.config.LogStoreConfig.Backend = LogStoreBackendWAL
} else if s.config.LogStoreConfig.Backend == LogStoreBackendWAL || s.config.LogStoreConfig.Backend == LogStoreBackendDefault {

Loading…
Cancel
Save