From 876a69a0b7b38038301c5113fb675bc4a6eb18f3 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 a4638d95c..cbd3fadf3 100644 --- a/cmd/keeper/cmd/keeper.go +++ b/cmd/keeper/cmd/keeper.go @@ -1248,6 +1248,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))