File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.70 2007/08/22 23:03:27 tgl Exp $
2+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.71 2007/08/25 09:21:14 ishii Exp $
33 *
44 * pgbench: a simple benchmark program for PostgreSQL
55 * written by Tatsuo Ishii
@@ -53,7 +53,12 @@ extern int optind;
5353/********************************************************************
5454 * some configurable parameters */
5555
56- #define MAXCLIENTS 1024 /* max number of clients allowed */
56+ /* max number of clients allowed */
57+ #ifdef FD_SETSIZE
58+ #define MAXCLIENTS (FD_SETSIZE - 10)
59+ #else
60+ #define MAXCLIENTS 1024
61+ #endif
5762
5863int nclients = 1 ; /* default number of simulated clients */
5964int nxacts = 10 ; /* default number of transactions per clients */
You can’t perform that action at this time.
0 commit comments