Skip to content

Commit 2711f2b

Browse files
committed
fix: use built recovery config instead of original one
1 parent c4144cd commit 2711f2b

File tree

1 file changed

+1
-1
lines changed
  • engine/internal/retrieval/engine/postgres/snapshot

1 file changed

+1
-1
lines changed

engine/internal/retrieval/engine/postgres/snapshot/physical.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ func (p *PhysicalInitial) promoteInstance(ctx context.Context, clonePath string,
568568
if syState.Err != nil {
569569
recoveryConfig = buildRecoveryConfig(recoveryFileConfig, p.options.Promotion.Recovery)
570570

571-
if err := cfgManager.ApplyRecovery(recoveryFileConfig); err != nil {
571+
if err := cfgManager.ApplyRecovery(recoveryConfig); err != nil {
572572
return errors.Wrap(err, "failed to apply recovery configuration")
573573
}
574574
} else if err := cfgManager.RemoveRecoveryConfig(); err != nil {

0 commit comments

Comments
 (0)