From 0415c9caff19884011eb792db5a5289fa6777d54 Mon Sep 17 00:00:00 2001 From: Alexander Pyhalov Date: Sun, 20 Sep 2020 13:00:05 +0300 Subject: [PATCH] Remove recovery options after finishing PITR recoovery Fixes #798 --- cmd/keeper/cmd/keeper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/keeper/cmd/keeper.go b/cmd/keeper/cmd/keeper.go index b5f815018..a2431fc8d 100644 --- a/cmd/keeper/cmd/keeper.go +++ b/cmd/keeper/cmd/keeper.go @@ -1236,6 +1236,7 @@ func (p *PostgresKeeper) postgresKeeperSM(pctx context.Context) { return } log.Infof("recovery completed") + pgm.SetRecoveryOptions(nil) } if err = pgm.WaitReady(cd.Cluster.DefSpec().SyncTimeout.Duration); err != nil { log.Errorw("timeout waiting for instance to be ready", zap.Error(err))