mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 11:08:10 +02:00
edge case is when desired is lower than effective
This commit is contained in:
+1
-1
@@ -567,7 +567,7 @@ func (c *Cluster) checkAndSetGlobalPostgreSQLConfiguration(pod *v1.Pod, patroniC
|
||||
effectiveValue := effectivePgParameters[desiredOption]
|
||||
if isBootstrapOnlyParameter(desiredOption) && (effectiveValue != desiredValue) {
|
||||
parametersToSet[desiredOption] = desiredValue
|
||||
if util.SliceContains(requireMasterRestartWhenDecreased, desiredOption) && (effectiveValue != desiredValue) {
|
||||
if util.SliceContains(requireMasterRestartWhenDecreased, desiredOption) && (effectiveValue > desiredValue) {
|
||||
restartMaster = append(restartMaster, true)
|
||||
} else {
|
||||
restartMaster = append(restartMaster, false)
|
||||
|
||||
Reference in New Issue
Block a user