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:
parent
b2d82bd248
commit
5395aa0c92
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user