!799 解决解决延迟回放重启集群备机walreceiver进程可能没拉起来的问题

Merge pull request !799 from mujinqiang/fixremote
This commit is contained in:
opengauss-bot
2021-03-12 17:28:45 +08:00
committed by Gitee

View File

@ -7718,6 +7718,13 @@ static bool RecoveryApplyDelay(const XLogReaderState *record)
return false;
}
/* the walreceiver process is started behind here,
* ensure that the walreceiver process has been started,
* otherwise, the stream replication will be disconnected */
if (g_instance.pid_cxt.WalReceiverPID == 0) {
return false;
}
/*
* Is it a COMMIT record?
* We deliberately choose not to delay aborts since they have no effect on