Skip to content

Commit

Permalink
Merge branch 'nik-3-5-fix-recovery-conf-filename' into 'master'
Browse files Browse the repository at this point in the history
fix: use built recovery config instead of original one

See merge request postgres-ai/database-lab!929
  • Loading branch information
NikolayS committed Nov 20, 2024
2 parents c7aca2c + 2711f2b commit 98bf221
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ func (p *PhysicalInitial) promoteInstance(ctx context.Context, clonePath string,
if syState.Err != nil {
recoveryConfig = buildRecoveryConfig(recoveryFileConfig, p.options.Promotion.Recovery)

if err := cfgManager.ApplyRecovery(recoveryFileConfig); err != nil {
if err := cfgManager.ApplyRecovery(recoveryConfig); err != nil {
return errors.Wrap(err, "failed to apply recovery configuration")
}
} else if err := cfgManager.RemoveRecoveryConfig(); err != nil {
Expand Down

0 comments on commit 98bf221

Please sign in to comment.