From 28b0b4ebd1498546bb3041d64252ad47f106af5b Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Thu, 8 Apr 2021 17:15:26 +0200 Subject: [PATCH] Move slow start increment to generic place --- src/backend/distributed/executor/adaptive_executor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/distributed/executor/adaptive_executor.c b/src/backend/distributed/executor/adaptive_executor.c index 66c486f47..8cc185abf 100644 --- a/src/backend/distributed/executor/adaptive_executor.c +++ b/src/backend/distributed/executor/adaptive_executor.c @@ -2454,6 +2454,9 @@ ManageWorkerPool(WorkerPool *workerPool) return; } + /* increase the open rate every cycle (like TCP slow start) */ + workerPool->maxNewConnectionsPerCycle += 1; + OpenNewConnections(workerPool, newConnectionCount, execution->transactionProperties); /* @@ -2641,10 +2644,7 @@ CalculateNewConnectionCount(WorkerPool *workerPool) */ newConnectionCount = Min(newConnectionsForReadyTasks, maxNewConnectionCount); if (newConnectionCount > 0) - { - /* increase the open rate every cycle (like TCP slow start) */ - workerPool->maxNewConnectionsPerCycle += 1; - } + { } } return newConnectionCount; }