~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/mysql_priv.h

  • Committer: Jay Pipes
  • Date: 2008-08-05 19:47:24 UTC
  • mto: (264.1.6 codestyle)
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: jay@mysql.com-20080805194724-14iad8arm9b1380n
More comments in mysql_priv.h to mark stuff TODO. Move sql_locale.h and object_creation_ctx.h up in the file since no more dependencies above them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
#include <drizzled/sql_alloc.h>
79
79
/* Virtual I/O wrapper library */
80
80
#include <vio/violite.h>
 
81
/* Definition of the MY_LOCALE struct and some convenience functions */
 
82
#include <drizzled/sql_locale.h>
 
83
/* 
 
84
 * Declarations of Object_creation_ctx and Default_creation_ctx, 
 
85
 * needed by parser.  Object_creation_ctx depends on THD, but THD
 
86
 * is forward-declared in scheduler.h, so we're good to put this
 
87
 * here 
 
88
 */
 
89
#include <drizzled/object_creation_ctx.h>
81
90
 
82
91
#ifdef HAVE_DTRACE
83
92
#define _DTRACE_VERSION 1
84
93
#endif
85
94
#include "probes.h"
86
95
 
87
 
 
88
 
/* #include "unireg.h" */
89
 
 
90
96
/**
91
97
  Query type constants.
92
98
 
171
177
/* increment query_id and return it.  */
172
178
inline query_id_t next_query_id() { return global_query_id++; }
173
179
 
174
 
#define PREV_BITS(type,A)       ((type) (((type) 1 << (A)) -1))
175
 
#define all_bits_set(A,B) ((A) & (B) != (B))
176
 
 
177
180
extern CHARSET_INFO *system_charset_info, *files_charset_info ;
178
181
extern CHARSET_INFO *national_charset_info, *table_alias_charset;
179
182
 
199
202
  DERIVATION_EXPLICIT= 0
200
203
};
201
204
 
202
 
/* Definition of the MY_LOCALE struct and some convenience functions */
203
 
#include <drizzled/sql_locale.h>
204
 
/* Declarations of Object_creation_ctx and Default_creation_ctx, needed by parser */
205
 
#include <drizzled/object_creation_ctx.h>
206
 
 
207
205
/**
208
206
 * Opening modes for open_temporary_table and open_table_from_share
209
207
 *
245
243
 
246
244
#define STACK_MIN_SIZE_FOR_OPEN 1024*80
247
245
#define STACK_BUFF_ALLOC        352     ///< For stack overrun checks
 
246
 
 
247
/** 
 
248
 * @TODO Move into a drizzled.h since it's only used in drizzled.cc
 
249
 *
 
250
 * @TODO Rename to DRIZZLED_NET_RETRY_COUNT
 
251
 */
248
252
#ifndef MYSQLD_NET_RETRY_COUNT
249
253
#define MYSQLD_NET_RETRY_COUNT  10      ///< Abort read after this many int.
250
254
#endif
344
348
#define TEST_CORE_ON_SIGNAL     256     /**< Give core if signal */
345
349
#define TEST_NO_STACKTRACE      512
346
350
#define TEST_SIGINT             1024    /**< Allow sigint on threads */
347
 
#define TEST_SYNCHRONIZATION    2048    /**< get server to do sleep in
348
 
                                           some places */
 
351
#define TEST_SYNCHRONIZATION    2048    /**< get server to do sleep in some places */
349
352
#endif
350
353
 
351
354
/*