~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

Merge Monty (really Tim)

Show diffs side-by-side

added added

removed removed

Lines of Context:
528
528
  TableShare::cacheStop();
529
529
  set_var_free();
530
530
  free_charsets();
531
 
  ha_end();
532
531
  plugin::Registry &plugins= plugin::Registry::singleton();
533
532
  plugin_shutdown(plugins);
534
533
  xid_cache_free();
549
548
 
550
549
  if (print_message && server_start_time)
551
550
    errmsg_printf(ERRMSG_LVL_INFO, _(ER(ER_SHUTDOWN_COMPLETE)),internal::my_progname);
552
 
  /* Returns NULL on globerrs, we don't want to try to free that */
553
 
  //void *freeme=
554
 
  (void *)my_error_unregister(ER_ERROR_FIRST, ER_ERROR_LAST);
555
 
  // TODO!!!! EPIC FAIL!!!! This sefaults if uncommented.
556
 
/*  if (freeme != NULL)
557
 
    free(freeme);  */
558
551
  (void) pthread_mutex_lock(&LOCK_thread_count);
559
552
  ready_to_exit=1;
560
553
  /* do the broadcast inside the lock to ensure that my_end() is not called */
1134
1127
  current_pid= getpid();                /* Save for later ref */
1135
1128
  init_time();                          /* Init time-functions (read zone) */
1136
1129
 
1137
 
  if (init_errmessage())        /* Read error messages from file */
1138
 
    return 1;
1139
1130
  if (item_create_init())
1140
1131
    return 1;
1141
1132
  if (set_var_init())
1244
1235
  }
1245
1236
 
1246
1237
  /* Allow storage engine to give real error messages */
1247
 
  if (ha_init_errors())
1248
 
    return(1);
 
1238
  ha_init_errors();
1249
1239
 
1250
1240
  if (plugin_init(plugins, &defaults_argc, defaults_argv,
1251
1241
                  ((opt_help) ? true : false)))