existing slot must use the same plugin
This commit is contained in:
parent
8d52e8d3c6
commit
06956d172d
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue