~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2008-11-26 00:27:15 UTC
  • Revision ID: brian@tangent.org-20081126002715-2wtuul604lt472k0
More ulong work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
uint32_t tc_heuristic_recover= 0;
311
311
uint32_t volatile thread_count, thread_running;
312
312
uint64_t session_startup_options;
313
 
ulong back_log, connect_timeout;
 
313
ulong back_log;
 
314
uint64_t connect_timeout;
314
315
uint32_t server_id;
315
316
ulong table_cache_size, table_def_size;
316
317
ulong what_to_log;
324
325
ulong slave_exec_mode_options;
325
326
const char *slave_exec_mode_str= "STRICT";
326
327
ulong thread_cache_size= 0;
327
 
ulong thread_pool_size= 0;
328
 
ulong binlog_cache_size= 0;
329
 
ulong max_binlog_cache_size= 0;
 
328
uint64_t thread_pool_size= 0;
 
329
uint64_t binlog_cache_size= 0;
 
330
uint64_t max_binlog_cache_size= 0;
330
331
uint32_t refresh_version;  /* Increments on each reload */
331
332
ulong aborted_threads;
332
333
ulong aborted_connects;
339
340
pid_t current_pid;
340
341
ulong slow_launch_threads = 0;
341
342
ulong sync_binlog_period;
342
 
ulong expire_logs_days = 0;
 
343
uint64_t expire_logs_days= 0;
343
344
ulong rpl_recovery_rank=0;
344
345
const char *log_output_str= "FILE";
345
346
 
1284
1285
  fprintf(stderr, "connection_count=%u\n", connection_count);
1285
1286
  fprintf(stderr, _("It is possible that drizzled could use up to \n"
1286
1287
                    "key_buffer_size + (read_buffer_size + "
1287
 
                    "sort_buffer_size)*max_threads = %lu K\n"
 
1288
                    "sort_buffer_size)*max_threads = %"PRIu64" K\n"
1288
1289
                    "bytes of memory\n"
1289
1290
                    "Hope that's ok; if not, decrease some variables in the "
1290
1291
                    "equation.\n\n"),
1291
 
                    ((uint32_t) dflt_key_cache->key_cache_mem_size +
 
1292
          (uint64_t)(((uint32_t) dflt_key_cache->key_cache_mem_size +
1292
1293
                     (global_system_variables.read_buff_size +
1293
1294
                      global_system_variables.sortbuff_size) *
1294
1295
                     thread_scheduler.max_threads +
1295
 
                     max_connections * sizeof(Session)) / 1024);
 
1296
                     max_connections * sizeof(Session)) / 1024));
1296
1297
 
1297
1298
#ifdef HAVE_STACKTRACE
1298
1299
  Session *session= current_session;
3202
3203
    N_("The size of the cache to hold the SQL statements for the binary log "
3203
3204
       "during a transaction. If you often use big, multi-statement "
3204
3205
       "transactions you can increase this to get more performance."),
3205
 
    (char**) &binlog_cache_size, (char**) &binlog_cache_size, 0, GET_ULONG,
 
3206
    (char**) &binlog_cache_size, (char**) &binlog_cache_size, 0, GET_ULL,
3206
3207
    REQUIRED_ARG, 32*1024L, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3207
3208
  { "bulk_insert_buffer_size", OPT_BULK_INSERT_BUFFER_SIZE,
3208
3209
    N_("Size of tree cache used in bulk insert optimisation. Note that this is "
3214
3215
    N_("The number of seconds the drizzled server is waiting for a connect "
3215
3216
       "packet before responding with 'Bad handshake'."),
3216
3217
    (char**) &connect_timeout, (char**) &connect_timeout,
3217
 
    0, GET_ULONG, REQUIRED_ARG, CONNECT_TIMEOUT, 2, LONG_TIMEOUT, 0, 1, 0 },
 
3218
    0, GET_ULL, REQUIRED_ARG, CONNECT_TIMEOUT, 2, LONG_TIMEOUT, 0, 1, 0 },
3218
3219
  { "date_format", OPT_DATE_FORMAT,
3219
3220
    N_("The DATE format (For future)."),
3220
3221
    (char**) &opt_date_time_formats[DRIZZLE_TIMESTAMP_DATE],
3240
3241
    N_("If non-zero, binary logs will be purged after expire_logs_days "
3241
3242
       "days; possible purges happen at startup and at binary log rotation."),
3242
3243
    (char**) &expire_logs_days,
3243
 
    (char**) &expire_logs_days, 0, GET_ULONG,
 
3244
    (char**) &expire_logs_days, 0, GET_ULL,
3244
3245
    REQUIRED_ARG, 0, 0, 99, 0, 1, 0},
3245
3246
  { "group_concat_max_len", OPT_GROUP_CONCAT_MAX_LEN,
3246
3247
    N_("The maximum length of the result of function  group_concat."),
3303
3304
   N_("Can be used to restrict the total size used to cache a "
3304
3305
      "multi-transaction query."),
3305
3306
   (char**) &max_binlog_cache_size, (char**) &max_binlog_cache_size, 0,
3306
 
   GET_ULONG, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
 
3307
   GET_ULL, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
3307
3308
  {"max_binlog_size", OPT_MAX_BINLOG_SIZE,
3308
3309
   N_("Binary log will be rotated automatically when the size exceeds this "
3309
3310
      "value. Will also apply to relay logs if max_relay_log_size is 0. "
3591
3592
  {"thread_pool_size", OPT_THREAD_CACHE_SIZE,
3592
3593
    N_("How many threads we should create to handle query requests in case of "
3593
3594
       "'thread_handling=pool-of-threads'"),
3594
 
    (char**) &thread_pool_size, (char**) &thread_pool_size, 0, GET_UINT,
 
3595
    (char**) &thread_pool_size, (char**) &thread_pool_size, 0, GET_ULL,
3595
3596
    REQUIRED_ARG, 8, 1, 16384, 0, 1, 0},
3596
3597
  {"thread_stack", OPT_THREAD_STACK,
3597
3598
   N_("The stack size for each thread."),