~ubuntu-branches/ubuntu/natty/drizzle/natty

« back to all changes in this revision

Viewing changes to drizzled/definitions.h

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2011-02-02 13:42:46 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20110202134246-rj4qc6zafvdd7sq2
Tags: 2011.02.09-0ubuntu1
* New upstream release.
* Updated the -Werror patch.
* Updated copyright file.
* Removed get-orig-source target which didn't work right.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
#define MAX_REF_PARTS 16                        /* Max parts used as ref */
60
60
#define MAX_KEY_LENGTH 4096                     /* max possible key */
61
61
#define MAX_KEY_LENGTH_DECIMAL_WIDTH 4          /* strlen("4096") */
 
62
 
62
63
#if SIZEOF_OFF_T > 4
63
64
#define MAX_REFLENGTH 8                         /* Max length for record ref */
64
65
#else
106
107
*/
107
108
#define MIN_TURBOBM_PATTERN_LEN 3
108
109
 
109
 
/*
110
 
   Defines for binary logging.
111
 
   Do not decrease the value of BIN_LOG_HEADER_SIZE.
112
 
   Do not even increase it before checking code.
113
 
*/
114
 
 
115
 
#define BIN_LOG_HEADER_SIZE    4
116
 
 
117
110
/* Below are #defines that used to be in mysql_priv.h */
118
111
/***************************************************************************
119
112
  Configuration parameters
197
190
/* The following can also be changed from the command line */
198
191
#define DEFAULT_CONCURRENCY     10
199
192
#define FLUSH_TIME              0               /**< Don't flush tables */
200
 
#define MAX_CONNECT_ERRORS      10              ///< errors before disabling host
201
 
 
202
 
/* Bits from testflag */
203
 
enum test_flag_bit
204
 
{
205
 
  TEST_PRINT_CACHED_TABLES= 1,
206
 
  TEST_NO_KEY_GROUP,
207
 
  TEST_MIT_THREAD,
208
 
  TEST_KEEP_TMP_TABLES,
209
 
  TEST_READCHECK, /**< Force use of readcheck */
210
 
  TEST_NO_EXTRA,
211
 
  TEST_CORE_ON_SIGNAL, /**< Give core if signal */
212
 
  TEST_NO_STACKTRACE,
213
 
  TEST_SIGINT, /**< Allow sigint on threads */
214
 
  TEST_SYNCHRONIZATION /**< get server to do sleep in some places */
215
 
};
216
193
 
217
194
/* Bits for different SQL modes modes (including ANSI mode) */
218
195
#define MODE_NO_ZERO_DATE               (2)
511
488
#define uint64_t2double(A) ((double) (uint64_t) (A))
512
489
#endif
513
490
 
 
491
#ifndef int64_t2double
 
492
#define int64_t2double(A) ((double) (int64_t) (A))
 
493
#endif
 
494
 
514
495
#ifndef offsetof
515
496
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
516
497
#endif