Sync HEAD and 8.1 branches of pgbench.
/*
- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.48 2005/11/23 12:19:12 ishii Exp $
+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.49 2005/12/10 01:09:07 tgl Exp $
*
* pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii
CState *st = &state[n];
Command **commands;
+top:
commands = sql_files[st->use_file];
if (st->listen)
{
st->state = 0;
st->use_file = getrand(0, num_files - 1);
+ commands = sql_files[st->use_file];
}
}
free(val);
st->listen = 1;
}
+
+ goto top;
}
}
fclose(fd);
return false;
}
- } else {
- lineno++;
+ } else
continue;
- }
my_commands[lineno] = commands;
lineno++;