mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Remove incorrect increment of lineno, per David Fetter.
Sync HEAD and 8.1 branches of pgbench.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.45.2.3 2005/12/04 01:22:42 ishii Exp $
|
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.45.2.4 2005/12/10 01:09:14 tgl Exp $
|
||||||
*
|
*
|
||||||
* pgbench: a simple benchmark program for PostgreSQL
|
* pgbench: a simple benchmark program for PostgreSQL
|
||||||
* written by Tatsuo Ishii
|
* written by Tatsuo Ishii
|
||||||
@ -898,10 +898,8 @@ process_file(char *filename)
|
|||||||
fclose(fd);
|
fclose(fd);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
lineno++;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
my_commands[lineno] = commands;
|
my_commands[lineno] = commands;
|
||||||
lineno++;
|
lineno++;
|
||||||
@ -1120,8 +1118,7 @@ main(int argc, char **argv)
|
|||||||
fprintf(stderr, "Use limit/ulimt to increase the limit before using pgbench.\n");
|
fprintf(stderr, "Use limit/ulimt to increase the limit before using pgbench.\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#endif /* #if !(defined(__CYGWIN__) ||
|
#endif
|
||||||
* defined(__MINGW32__)) */
|
|
||||||
break;
|
break;
|
||||||
case 'C':
|
case 'C':
|
||||||
is_connect = 1;
|
is_connect = 1;
|
||||||
|
Reference in New Issue
Block a user