From 42e68fdcf27f71e6a6e93c85108f05fc0212e989 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 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..f7f246f2f 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))