~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysqlslap.c

  • Committer: Brian Aker
  • Date: 2008-07-13 06:35:46 UTC
  • Revision ID: brian@tangent.org-20080713063546-w1fzi89wzvf6o517
Bool cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
pthread_cond_t sleep_threshhold;
98
98
 
99
99
/* Global Thread timer */
100
 
static my_bool timer_alarm= FALSE;
 
100
static bool timer_alarm= FALSE;
101
101
pthread_mutex_t timer_alarm_mutex;
102
102
pthread_cond_t timer_alarm_threshold;
103
103
 
119
119
 
120
120
const char *create_schema_string= "mysqlslap";
121
121
 
122
 
static my_bool opt_preserve= TRUE;
123
 
static my_bool debug_info_flag= 0, debug_check_flag= 0;
124
 
static my_bool opt_only_print= FALSE;
125
 
static my_bool opt_burnin= FALSE;
126
 
static my_bool opt_ignore_sql_errors= FALSE;
127
 
static my_bool opt_compress= FALSE, tty_password= FALSE,
 
122
static bool opt_preserve= TRUE;
 
123
static bool debug_info_flag= 0, debug_check_flag= 0;
 
124
static bool opt_only_print= FALSE;
 
125
static bool opt_burnin= FALSE;
 
126
static bool opt_ignore_sql_errors= FALSE;
 
127
static bool opt_compress= FALSE, tty_password= FALSE,
128
128
               opt_silent= FALSE,
129
129
               auto_generate_sql_autoincrement= FALSE,
130
130
               auto_generate_sql_guid_primary= FALSE,
274
274
static statement *build_table_string(void);
275
275
static statement *build_insert_string(void);
276
276
static statement *build_update_string(void);
277
 
static statement * build_select_string(my_bool key);
 
277
static statement * build_select_string(bool key);
278
278
static int generate_primary_key_list(MYSQL *mysql, option_string *engine_stmt);
279
279
static int drop_primary_key_list(void);
280
280
static int create_schema(MYSQL *mysql, const char *db, statement *stmt, 
287
287
void option_cleanup(option_string *stmt);
288
288
void concurrency_loop(MYSQL *mysql, uint current, option_string *eptr);
289
289
static int run_statements(MYSQL *mysql, statement *stmt);
290
 
void slap_connect(MYSQL *mysql, my_bool connect_to_schema);
 
290
void slap_connect(MYSQL *mysql, bool connect_to_schema);
291
291
void slap_close(MYSQL *mysql);
292
292
static int run_query(MYSQL *mysql, const char *query, int len);
293
293
void standard_deviation (conclusions *con, stats *sptr);
739
739
 
740
740
#include <help_end.h>
741
741
 
742
 
static my_bool
 
742
static bool
743
743
get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
744
744
               char *argument)
745
745
{
1153
1153
  statement or file containing a query statement
1154
1154
*/
1155
1155
static statement *
1156
 
build_select_string(my_bool key)
 
1156
build_select_string(bool key)
1157
1157
{
1158
1158
  char       buf[HUGE_STRING_LENGTH];
1159
1159
  unsigned int        col_count;
2513
2513
}
2514
2514
 
2515
2515
void 
2516
 
slap_connect(MYSQL *mysql, my_bool connect_to_schema)
 
2516
slap_connect(MYSQL *mysql, bool connect_to_schema)
2517
2517
{
2518
2518
  /* Connect to server */
2519
2519
  static ulong connection_retry_sleep= 100000; /* Microseconds */