Allocate one extra process for backup from standby.
The connection to the primary is process-max + 1 so make space for it.
@@ -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));
}
