summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-12-10 01:09:14 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-12-10 01:09:14 +0000
commit31a21e3df0a00be4f278c815b487b6c9d9f12a11 (patch)
tree42cd1c3028f1ebb6281933e7ace548934b3f2508
parent8c1fc987e4ec0e2f9ba646606e028447acce302a (diff)
downloadpostgresql-31a21e3df0a00be4f278c815b487b6c9d9f12a11.tar.gz
Remove incorrect increment of lineno, per David Fetter.REL8_1_1
Sync HEAD and 8.1 branches of pgbench.
-rw-r--r--contrib/pgbench/pgbench.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index ae8c4fe5e4..50164a762e 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -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
* written by Tatsuo Ishii
@@ -898,10 +898,8 @@ process_file(char *filename)
fclose(fd);
return false;
}
- } else {
- lineno++;
+ } else
continue;
- }
my_commands[lineno] = commands;
lineno++;
@@ -1120,8 +1118,7 @@ main(int argc, char **argv)
fprintf(stderr, "Use limit/ulimt to increase the limit before using pgbench.\n");
exit(1);
}
-#endif /* #if !(defined(__CYGWIN__) ||
- * defined(__MINGW32__)) */
+#endif
break;
case 'C':
is_connect = 1;