mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 00:01:00 +02:00
fix sync of stream slots (#2194)
This commit is contained in:
+6
-1
@@ -647,7 +647,12 @@ func (c *Cluster) checkAndSetGlobalPostgreSQLConfiguration(pod *v1.Pod, effectiv
|
||||
}
|
||||
}
|
||||
slotsToSet[slotName] = desiredSlot
|
||||
c.replicationSlots[slotName] = desiredSlot
|
||||
// only add slots specified in manifest to c.replicationSlots
|
||||
for manifestSlotName, _ := range c.Spec.Patroni.Slots {
|
||||
if manifestSlotName == slotName {
|
||||
c.replicationSlots[slotName] = desiredSlot
|
||||
}
|
||||
}
|
||||
}
|
||||
if len(slotsToSet) > 0 {
|
||||
configToSet["slots"] = slotsToSet
|
||||
|
||||
Reference in New Issue
Block a user