From e83a4c6e5cd3731f43d51f101761090f1d58b7da Mon Sep 17 00:00:00 2001 From: "Adm.rsft" 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))