~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-07-08 04:17:31 UTC
  • mto: (1089.3.4 merge)
  • mto: This revision was merged to the branch mainline in revision 1092.
  • Revision ID: osullivan.padraig@gmail.com-20090708041731-f80xfliiafxhbvsj
Modified the size of the test_flags bitset to be 12 bits instead of 32. No
bit past 11 is ever used so no need to a bitset of size 32.

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
#define WAIT_PRIOR      8
264
264
#define QUERY_PRIOR     6
265
265
 
266
 
        /* Bits from testflag */
267
 
#define TEST_PRINT_CACHED_TABLES 1
268
 
#define TEST_NO_KEY_GROUP        2
269
 
#define TEST_MIT_THREAD         3
270
 
#define TEST_KEEP_TMP_TABLES    4
271
 
#define TEST_READCHECK          6       /**< Force use of readcheck */
272
 
#define TEST_NO_EXTRA    7      
273
 
#define TEST_CORE_ON_SIGNAL     8 /**< Give core if signal */
274
 
#define TEST_NO_STACKTRACE      9
275
 
#define TEST_SIGINT             10      /**< Allow sigint on threads */
276
 
#define TEST_SYNCHRONIZATION    11    /**< get server to do sleep in some places */
 
266
/* Bits from testflag */
 
267
enum test_flag_bit
 
268
{
 
269
  TEST_PRINT_CACHED_TABLES= 1,
 
270
  TEST_NO_KEY_GROUP,
 
271
  TEST_MIT_THREAD,
 
272
  TEST_KEEP_TMP_TABLES,
 
273
  TEST_READCHECK, /**< Force use of readcheck */
 
274
  TEST_NO_EXTRA,
 
275
  TEST_CORE_ON_SIGNAL, /**< Give core if signal */
 
276
  TEST_NO_STACKTRACE,
 
277
  TEST_SIGINT, /**< Allow sigint on threads */
 
278
  TEST_SYNCHRONIZATION /**< get server to do sleep in some places */
 
279
};
277
280
 
278
281
/* Bits for different SQL modes modes (including ANSI mode) */
279
282
#define MODE_NO_ZERO_DATE               (2)