diff --git a/contrib/ndpplugin/ndpplugin.cpp b/contrib/ndpplugin/ndpplugin.cpp index 5e5ca4abf..b80337b87 100644 --- a/contrib/ndpplugin/ndpplugin.cpp +++ b/contrib/ndpplugin/ndpplugin.cpp @@ -301,11 +301,7 @@ static bool NdpScanGetPage(NdpScanDesc ndpScan) Assert(req >= resp); if (ndpScan->handledBlock < ndpScan->nBlock) { -#ifdef ENABLE_SSL if ((req - resp) >= NDP_MAX_AWAIT_REQUEST) { -#else - if ((req - resp) >= NDP_MAX_AWAIT_REQUEST || g_ndp_instance.pageContext->Empty()) { -#endif pg_usleep(NDP_RPC_WAIT_USEC); } else { NdpScanTryPushDownScan((HeapScanDesc)ndpScan->scan, ndpScan);