Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Zalimeni <[email protected]>
  • Loading branch information
dhiaayachi and zalimeni committed Sep 23, 2024
1 parent 82225d4 commit 7213782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/consul/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7213782

Please sign in to comment.