~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqlslap.c

  • Committer: Brian Aker
  • Date: 2008-07-13 22:21:51 UTC
  • Revision ID: brian@tangent.org-20080713222151-fv2tcpbsc829j2oc
Ulonglong to uint64_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
static unsigned int iterations;
159
159
static uint my_end_arg= 0;
160
160
static char *default_charset= (char*) MYSQL_DEFAULT_CHARSET_NAME;
161
 
static ulonglong actual_queries= 0;
162
 
static ulonglong auto_actual_queries;
163
 
static ulonglong auto_generate_sql_unique_write_number;
164
 
static ulonglong auto_generate_sql_unique_query_number;
 
161
static uint64_t actual_queries= 0;
 
162
static uint64_t auto_actual_queries;
 
163
static uint64_t auto_generate_sql_unique_write_number;
 
164
static uint64_t auto_generate_sql_unique_query_number;
165
165
static unsigned int auto_generate_sql_secondary_indexes;
166
 
static ulonglong num_of_query;
167
 
static ulonglong auto_generate_sql_number;
 
166
static uint64_t num_of_query;
 
167
static uint64_t auto_generate_sql_number;
168
168
const char *concurrency_str= NULL;
169
169
static char *create_string;
170
170
uint *concurrency;
227
227
 
228
228
struct thread_context {
229
229
  statement *stmt;
230
 
  ulonglong limit;
 
230
  uint64_t limit;
231
231
};
232
232
 
233
233
typedef struct conclusions conclusions;
280
280
static int create_schema(MYSQL *mysql, const char *db, statement *stmt, 
281
281
                         option_string *engine_stmt, stats *sptr);
282
282
static int run_scheduler(stats *sptr, statement **stmts, uint concur, 
283
 
                         ulonglong limit);
 
283
                         uint64_t limit);
284
284
pthread_handler_t run_task(void *p);
285
285
pthread_handler_t timer_thread(void *p);
286
286
void statement_cleanup(statement *stmt);
1712
1712
  statement *ptr;
1713
1713
  statement *after_create;
1714
1714
  int len;
1715
 
  ulonglong count;
 
1715
  uint64_t count;
1716
1716
  struct timeval start_time, end_time;
1717
1717
 
1718
1718
 
1865
1865
}
1866
1866
 
1867
1867
static int
1868
 
run_scheduler(stats *sptr, statement **stmts, uint concur, ulonglong limit)
 
1868
run_scheduler(stats *sptr, statement **stmts, uint concur, uint64_t limit)
1869
1869
{
1870
1870
  uint x;
1871
1871
  uint y;
2016
2016
 
2017
2017
pthread_handler_t run_task(void *p)
2018
2018
{
2019
 
  ulonglong counter= 0, queries;
2020
 
  ulonglong detach_counter;
 
2019
  uint64_t counter= 0, queries;
 
2020
  uint64_t detach_counter;
2021
2021
  unsigned int commit_counter;
2022
2022
  MYSQL mysql;
2023
2023
  MYSQL_RES *result;