Skip to content

Commit

Permalink
fix sync of stream slots (#2194)
Browse files Browse the repository at this point in the history
  • Loading branch information
FxKu committed Jan 27, 2023
1 parent d5251c5 commit 7a90fbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/cluster/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a90fbc

Please sign in to comment.