mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Move long_options structures to the top of main() functions, for
consistency. Per suggestion from Tom.
This commit is contained in:
@ -1915,6 +1915,15 @@ printResults(int ttype, int normal_xacts, int nclients,
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
static struct option long_options[] = {
|
||||
{"foreign-keys", no_argument, &foreign_keys, 1},
|
||||
{"index-tablespace", required_argument, NULL, 3},
|
||||
{"tablespace", required_argument, NULL, 2},
|
||||
{"unlogged-tables", no_argument, &unlogged_tables, 1},
|
||||
{"sampling-rate", required_argument, NULL, 4},
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
int c;
|
||||
int nclients = 1; /* default number of simulated clients */
|
||||
int nthreads = 1; /* default number of threads */
|
||||
@ -1937,15 +1946,6 @@ main(int argc, char **argv)
|
||||
|
||||
int i;
|
||||
|
||||
static struct option long_options[] = {
|
||||
{"foreign-keys", no_argument, &foreign_keys, 1},
|
||||
{"index-tablespace", required_argument, NULL, 3},
|
||||
{"tablespace", required_argument, NULL, 2},
|
||||
{"unlogged-tables", no_argument, &unlogged_tables, 1},
|
||||
{"sampling-rate", required_argument, NULL, 4},
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
#ifdef HAVE_GETRLIMIT
|
||||
struct rlimit rlim;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user