You've already forked pgbackrest
							
							
				mirror of
				https://github.com/pgbackrest/pgbackrest.git
				synced 2025-10-30 23:37:45 +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:
		| @@ -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)); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user