提交 eef7adbb 编写于 作者: J Jimmy Yih 提交者: Xin Zhang

Revert "Ignore walsender slots that are not currently used in gp_replica_check."

This reverts commit 3214d80fabf7c208e40b2ec4f7ec69c97a9e7dd6.
上级 09aab726
......@@ -217,11 +217,8 @@ sync_wait(void)
LWLockAcquire(SyncRepLock, LW_SHARED);
for (i = 0; i < max_wal_senders; i++)
{
/* Ignore standbys that are not connected at the moment */
if (WalSndCtl->walsnds[i].pid == 0)
continue;
if (WalSndCtl->walsnds[i].state != WALSNDSTATE_STREAMING
if (WalSndCtl->walsnds[i].pid == 0
|| WalSndCtl->walsnds[i].state != WALSNDSTATE_STREAMING
|| !XLByteLE(ckpt_lsn, WalSndCtl->walsnds[i].apply))
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册