Skip to content

Commit 7a90fbc

Browse files
authored
fix sync of stream slots (#2194)
1 parent d5251c5 commit 7a90fbc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/cluster/sync.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,12 @@ func (c *Cluster) checkAndSetGlobalPostgreSQLConfiguration(pod *v1.Pod, effectiv
647647
}
648648
}
649649
slotsToSet[slotName] = desiredSlot
650-
c.replicationSlots[slotName] = desiredSlot
650+
// only add slots specified in manifest to c.replicationSlots
651+
for manifestSlotName, _ := range c.Spec.Patroni.Slots {
652+
if manifestSlotName == slotName {
653+
c.replicationSlots[slotName] = desiredSlot
654+
}
655+
}
651656
}
652657
if len(slotsToSet) > 0 {
653658
configToSet["slots"] = slotsToSet

0 commit comments

Comments
 (0)