remove stream resources after drop from Postgres manifest (#2563)

* remove stream resources after drop from Postgres manifest
This commit is contained in:
Felix Kunde
2024-06-27 14:30:52 +02:00
committed by GitHub
parent 7cdc23fff0
commit 37d6993439
4 changed files with 44 additions and 4 deletions
+2 -1
View File
@@ -327,7 +327,8 @@ func (c *Cluster) syncStreams() error {
if len(slotsToSync) > 0 {
requiredPatroniConfig.Slots = slotsToSync
} else {
return nil
// try to delete existing stream resources
return c.deleteStreams()
}
c.logger.Debug("syncing logical replication slots")