Skip to content

Commit

Permalink
Allow 2 nodes with sync replication setup.
Browse files Browse the repository at this point in the history
... where replica is purged from synchronous_standby_names if it dies, but no
transactions are lost anyway, i.e. it can't be re-elected until it synchronizes.
  • Loading branch information
arssher authored and ololobus committed Jul 9, 2020
1 parent a4f4558 commit 1dd0880
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,6 @@ func (os *ClusterSpec) Validate() error {
if *s.MaxStandbysPerSender < 1 {
return fmt.Errorf("maxStandbysPerSender must be at least 1")
}
if *s.MinSynchronousStandbys < 1 {
return fmt.Errorf("minSynchronousStandbys must be at least 1")
}
if *s.MaxSynchronousStandbys < 1 {
return fmt.Errorf("maxSynchronousStandbys must be at least 1")
}
Expand Down

0 comments on commit 1dd0880

Please sign in to comment.