1
0
Fork 0

Bootstrap and join if requested

Probably the fix for https://github.com/rqlite/rqlite/issues/1290

This logic was always too conservative, bootstrapping will do a join first, which is fine.
master
Philip O'Toole 1 year ago committed by GitHub
parent 1a0c3c2413
commit 787ee124cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -515,11 +515,6 @@ func createCluster(cfg *Config, hasPeers bool, joiner *cluster.Joiner, str *stor
}
if joins != nil && cfg.BootstrapExpect > 0 {
if hasPeers {
log.Println("preexisting node configuration detected, ignoring bootstrap request")
return nil
}
// Bootstrap with explicit join addresses requests.
bs := cluster.NewBootstrapper(cluster.NewAddressProviderString(joins), tlsConfig)
if cfg.JoinAs != "" {

Loading…
Cancel
Save