From 5395aa0c92febadbf0c71f93799877cfe7268b6b Mon Sep 17 00:00:00 2001 From: David Steele Date: Thu, 5 Dec 2019 22:34:38 -0500 Subject: [PATCH] Allocate one extra process for backup from standby. The connection to the primary is process-max + 1 so make space for it. --- src/protocol/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/helper.c b/src/protocol/helper.c index 8836dfd97..ea41ff92d 100644 --- a/src/protocol/helper.c +++ b/src/protocol/helper.c @@ -169,7 +169,7 @@ protocolLocalGet(ProtocolStorageType protocolStorageType, unsigned int hostId, u { MEM_CONTEXT_BEGIN(protocolHelper.memContext) { - protocolHelper.clientLocalSize = cfgOptionUInt(cfgOptProcessMax); + protocolHelper.clientLocalSize = cfgOptionUInt(cfgOptProcessMax) + 1; protocolHelper.clientLocal = (ProtocolHelperClient *)memNew( protocolHelper.clientLocalSize * sizeof(ProtocolHelperClient)); }