mirror of
https://github.com/sorintlab/stolon.git
synced 2024-10-04 19:48:38 +03:00
Merge pull request #342 from sgotti/keeper_ignore_drop_repl_slot_error
keeper: log but ignore errors on dropping repl slots.
This commit is contained in:
commit
e0148beaad
@ -808,7 +808,7 @@ func (p *PostgresKeeper) updateReplSlots(dbLocalState *DBLocalState, followersUI
|
||||
log.Infow("dropping replication slot since db not marked as follower", "slot", slotName, "db", common.NameFromStolonName(slotName))
|
||||
if err = p.pgm.DropReplicationSlot(slotName); err != nil {
|
||||
log.Errorw("failed to drop replication slot", "slotName", slotName, "err", err)
|
||||
return err
|
||||
// don't return the error but continue also if drop failed (standby still connected)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user