small fix for setting bools in Postgres config

This commit is contained in:
Felix Kunde
2021-08-11 09:15:12 +02:00
parent 4862b05c69
commit 1f8cfc5c98
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -416,10 +416,10 @@ func (c *Cluster) syncStatefulSet() error {
if c.Spec.Patroni.TTL > 0 {
desiredPostgresConfig["ttl"] = c.Spec.Patroni.TTL
}
if effectivePostgresConfig["synchronous_mode"] != desiredPostgresConfig["synchronous_mode"] {
if effectivePostgresConfig["synchronous_mode"] != c.Spec.Patroni.SynchronousMode {
desiredPostgresConfig["synchronous_mode"] = c.Spec.Patroni.SynchronousMode
}
if effectivePostgresConfig["synchronous_mode_strict"] != desiredPostgresConfig["synchronous_mode_strict"] {
if effectivePostgresConfig["synchronous_mode_strict"] != c.Spec.Patroni.SynchronousModeStrict {
desiredPostgresConfig["synchronous_mode_strict"] = c.Spec.Patroni.SynchronousModeStrict
}