existing slot must use the same plugin

This commit is contained in:
Felix Kunde 2021-11-25 16:05:48 +01:00
parent 8d52e8d3c6
commit 06956d172d
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ func (c *Cluster) getStreamConnection(database, user string) zalandov1alpha1.Con
func (c *Cluster) getLogicalReplicationSlot(database string) string {
for slotName, slot := range c.Spec.Patroni.Slots {
if slot["type"] == "logical" && slot["database"] == database {
if slot["type"] == "logical" && slot["database"] == database && slot["plugin"] == "wal2json" {
return slotName
}
}