Remove unused MaxMasterConnectionCount function

pull/3922/head
citus bot 2020-07-03 10:45:00 +02:00
parent bdfeb380d3
commit f0693e2f75
2 changed files with 0 additions and 16 deletions

View File

@ -162,21 +162,6 @@ HasReplicatedDistributedTable(List *relationOids)
}
/*
* MaxMasterConnectionCount returns the number of connections a master can open.
* A master cannot create more than a certain number of file descriptors (FDs).
* Every task requires 2 FDs, one file and one connection. Some FDs are taken by
* the VFD pool and there is currently no way to reclaim these before opening a
* connection. We therefore assume some FDs to be reserved for VFDs, based on
* observing a typical size of the pool on a Citus master.
*/
int
MaxMasterConnectionCount(void)
{
return Max((max_files_per_process - RESERVED_FD_COUNT) / 2, 1);
}
/*
* RemoveJobDirectory gets automatically called at portal drop (end of query) or
* at transaction abort. The function removes the job directory and releases the

View File

@ -186,7 +186,6 @@ extern void CleanupTaskExecution(TaskExecution *taskExecution);
extern void ErrorSizeLimitIsExceeded(void);
extern bool TaskExecutionFailed(TaskExecution *taskExecution);
extern void AdjustStateForFailure(TaskExecution *taskExecution);
extern int MaxMasterConnectionCount(void);
extern TupleTableSlot * TaskTrackerExecScan(CustomScanState *node);