~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Jay Pipes
  • Date: 2009-07-08 05:36:50 UTC
  • mto: (1095.1.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1096.
  • Revision ID: jpipes@serialcoder-20090708053650-fxqjm85mqb1ezrqe
Removes a bunch of dead code and unused variables in drizzled.cc and server_includes.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
#include <sys/mman.h>
106
106
#endif
107
107
 
108
 
#define SIGNAL_FMT "signal %d"
109
 
 
110
 
 
111
108
#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H)
112
109
#include <ieeefp.h>
113
110
#ifdef HAVE_FP_EXCEPT                           // Fix type conflict
124
121
#include <sys/fpu.h>
125
122
#endif
126
123
 
127
 
 
128
124
inline void setup_fpu()
129
125
{
130
126
#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H)
171
167
/* Constants */
172
168
 
173
169
const char *show_comp_option_name[]= {"YES", "NO", "DISABLED"};
174
 
/*
175
 
  WARNING: When adding new SQL modes don't forget to update the
176
 
           tables definitions that stores it's value.
177
 
           (ie: mysql.event, mysql.proc)
178
 
*/
179
170
static const char *optimizer_switch_names[]=
180
171
{
181
172
  "no_materialization", "no_semijoin",
203
194
  tc_heuristic_recover_names, NULL
204
195
};
205
196
 
206
 
const char *first_keyword= "first", *binary_keyword= "BINARY";
207
 
const char *my_localhost= "localhost";
 
197
const char *first_keyword= "first";
 
198
const char *binary_keyword= "BINARY";
208
199
const char * const DRIZZLE_CONFIG_NAME= "drizzled";
209
200
#define GET_HA_ROWS GET_ULL
210
201
 
224
215
 
225
216
extern TYPELIB optimizer_use_mrr_typelib;
226
217
 
227
 
/* the default log output is log tables */
228
218
static bool volatile select_thread_in_use;
229
219
static bool volatile ready_to_exit;
230
220
static bool opt_debugging= 0;
242
232
 
243
233
/* Global variables */
244
234
 
245
 
bool server_id_supplied = 0;
246
 
bool opt_endinfo, using_udf_functions;
 
235
bool opt_endinfo;
247
236
bool locked_in_memory;
248
237
bool volatile abort_loop;
249
238
bool volatile shutdown_in_progress;
260
249
StorageEngine *myisam_engine;
261
250
 
262
251
char* opt_secure_file_priv= 0;
263
 
/*
264
 
  True if there is at least one per-hour limit for some user, so we should
265
 
  check them before each query (and possibly reset counters when hour is
266
 
  changed). False otherwise.
267
 
*/
268
 
bool opt_noacl;
269
252
 
270
253
#ifdef HAVE_INITGROUPS
271
254
static bool calling_initgroups= false; /**< Used in SIGSEGV handler. */
855
838
  */
856
839
  if (segfaulted)
857
840
  {
858
 
    fprintf(stderr, _("Fatal " SIGNAL_FMT " while backtracing\n"), sig);
 
841
    fprintf(stderr, _("Fatal signal %d while backtracing\n"), sig);
859
842
    exit(1);
860
843
  }
861
844
 
871
854
  localtime_r(&curr_time, &tm);
872
855
  Scheduler &thread_scheduler= get_thread_scheduler();
873
856
  
874
 
  fprintf(stderr,"%02d%02d%02d %2d:%02d:%02d - drizzled got "
875
 
          SIGNAL_FMT " ;\n"
 
857
  fprintf(stderr,"%02d%02d%02d %2d:%02d:%02d - drizzled got signal %d;\n"
876
858
          "This could be because you hit a bug. It is also possible that "
877
859
          "this binary\n or one of the libraries it was linked against is "
878
860
          "corrupt, improperly built,\n or misconfigured. This error can "
1390
1372
  if (ha_init_errors())
1391
1373
    return(1);
1392
1374
 
1393
 
  if (plugin_init(&defaults_argc, defaults_argv,
1394
 
                  (opt_noacl ? PLUGIN_INIT_SKIP_PLUGIN_TABLE : 0) |
1395
 
                  (opt_help ? PLUGIN_INIT_SKIP_INITIALIZATION : 0)))
 
1375
  if (plugin_init(&defaults_argc, defaults_argv, (opt_help ? PLUGIN_INIT_SKIP_INITIALIZATION : 0)))
1396
1376
  {
1397
 
      errmsg_printf(ERRMSG_LVL_ERROR, _("Failed to initialize plugins."));
 
1377
    errmsg_printf(ERRMSG_LVL_ERROR, _("Failed to initialize plugins."));
1398
1378
    unireg_abort(1);
1399
1379
  }
1400
1380
 
2396
2376
  cleanup_done= 0;
2397
2377
  defaults_argc= 0;
2398
2378
  defaults_argv= 0;
2399
 
  server_id_supplied= 0;
2400
2379
  test_flags= dropping_tables= ha_open_options=0;
2401
2380
  wake_thread=0;
2402
 
  opt_endinfo= using_udf_functions= 0;
 
2381
  opt_endinfo= false;
2403
2382
  abort_loop= select_thread_in_use= false;
2404
2383
  ready_to_exit= shutdown_in_progress= 0;
2405
2384
  aborted_threads= aborted_connects= 0;
2562
2541
    strncpy(pidfile_name, argument, sizeof(pidfile_name)-1);
2563
2542
    break;
2564
2543
  case OPT_SERVER_ID:
2565
 
    server_id_supplied = 1;
2566
2544
    break;
2567
2545
  case OPT_DELAY_KEY_WRITE_ALL:
2568
2546
    if (argument != disabled_my_option)
2830
2808
 
2831
2809
#ifdef HAVE_EXPLICIT_TEMPLATE_INSTANTIATION
2832
2810
/* Used templates */
2833
 
template class I_List<Session>;
2834
 
template class I_List_iterator<Session>;
2835
2811
template class I_List<i_string>;
2836
2812
template class I_List<i_string_pair>;
2837
2813
template class I_List<NAMED_LIST>;