1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Allocate one extra process for backup from standby.

The connection to the primary is process-max + 1 so make space for it.
This commit is contained in:
David Steele 2019-12-05 22:34:38 -05:00
parent b2d82bd248
commit 5395aa0c92

View File

@ -169,7 +169,7 @@ protocolLocalGet(ProtocolStorageType protocolStorageType, unsigned int hostId, u
{ {
MEM_CONTEXT_BEGIN(protocolHelper.memContext) MEM_CONTEXT_BEGIN(protocolHelper.memContext)
{ {
protocolHelper.clientLocalSize = cfgOptionUInt(cfgOptProcessMax); protocolHelper.clientLocalSize = cfgOptionUInt(cfgOptProcessMax) + 1;
protocolHelper.clientLocal = (ProtocolHelperClient *)memNew( protocolHelper.clientLocal = (ProtocolHelperClient *)memNew(
protocolHelper.clientLocalSize * sizeof(ProtocolHelperClient)); protocolHelper.clientLocalSize * sizeof(ProtocolHelperClient));
} }