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:
Simone Gotti 2017-08-23 17:07:57 +02:00
commit e0148beaad

View File

@ -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)
}
}
}