~zisis00/drizzle/ldap_policy

« back to all changes in this revision

Viewing changes to plugin/innobase/include/univ.i

  • Committer: Zisis Sialveras
  • Date: 2012-08-09 18:18:22 UTC
  • mfrom: (2553.1.25 workspace)
  • Revision ID: zisis00@gmail.com-20120809181822-9wobhdfdx411tu5w
Some changes in ldap_policy

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
#include "hb_univ.i"
51
51
#endif /* UNIV_HOTBACKUP */
52
52
 
 
53
/* aux macros to convert M into "123" (string) if M is defined like
 
54
#define M 123 */
 
55
#define _IB_TO_STR(s)   #s
 
56
#define IB_TO_STR(s)    _IB_TO_STR(s)
 
57
 
53
58
#define INNODB_VERSION_MAJOR    1
54
59
#define INNODB_VERSION_MINOR    1
55
 
#define INNODB_VERSION_BUGFIX   4
 
60
#define INNODB_VERSION_BUGFIX   6
56
61
 
57
62
/* The following is the InnoDB version as shown in
58
63
SELECT plugin_version FROM information_schema.plugins;
63
68
#define INNODB_VERSION_SHORT    \
64
69
        (INNODB_VERSION_MAJOR << 8 | INNODB_VERSION_MINOR)
65
70
 
66
 
/* auxiliary macros to help creating the version as string */
67
 
#define __INNODB_VERSION(a, b, c)       (#a "." #b "." #c)
68
 
#define _INNODB_VERSION(a, b, c)        __INNODB_VERSION(a, b, c)
69
 
 
70
71
#define INNODB_VERSION_STR                      \
71
 
        _INNODB_VERSION(INNODB_VERSION_MAJOR,   \
72
 
                        INNODB_VERSION_MINOR,   \
73
 
                        INNODB_VERSION_BUGFIX)
 
72
        IB_TO_STR(INNODB_VERSION_MAJOR) "."     \
 
73
        IB_TO_STR(INNODB_VERSION_MINOR) "."     \
 
74
        IB_TO_STR(INNODB_VERSION_BUGFIX)
74
75
 
75
 
#define REFMAN "http://dev.mysql.com/doc/refman/5.1/en/"
 
76
#define REFMAN "http://dev.mysql.com/doc/refman/"       \
 
77
        IB_TO_STR(MYSQL_MAJOR_VERSION) "."              \
 
78
        IB_TO_STR(MYSQL_MINOR_VERSION) "/en/"
76
79
 
77
80
#ifdef MYSQL_DYNAMIC_PLUGIN
78
81
/* In the dynamic plugin, redefine some externally visible symbols
201
204
                                                debugging without UNIV_DEBUG */
202
205
#define UNIV_BUF_DEBUG                          /* Enable buffer pool
203
206
                                                debugging without UNIV_DEBUG */
 
207
#define UNIV_BLOB_LIGHT_DEBUG                   /* Enable off-page column
 
208
                                                debugging without UNIV_DEBUG */
204
209
#define UNIV_DEBUG                              /* Enable ut_ad() assertions
205
210
                                                and disable UNIV_INLINE */
206
211
#define UNIV_DEBUG_LOCK_VALIDATE                /* Enable
207
212
                                                ut_ad(lock_rec_validate_page())
208
213
                                                assertions. */
209
 
#define UNIV_DEBUG_FILE_ACCESSES                /* Debug .ibd file access
210
 
                                                (field file_page_was_freed
211
 
                                                in buf_page_t) */
 
214
#define UNIV_DEBUG_FILE_ACCESSES                /* Enable freed block access
 
215
                                                debugging without UNIV_DEBUG */
212
216
#define UNIV_LRU_DEBUG                          /* debug the buffer pool LRU */
213
217
#define UNIV_HASH_DEBUG                         /* debug HASH_ macros */
214
218
#define UNIV_LIST_DEBUG                         /* debug UT_LIST_ macros */
217
221
debugging redo log application problems. */
218
222
#define UNIV_MEM_DEBUG                          /* detect memory leaks etc */
219
223
#define UNIV_IBUF_DEBUG                         /* debug the insert buffer */
 
224
#define UNIV_BLOB_DEBUG                         /* track BLOB ownership;
 
225
assumes that no BLOBs survive server restart */
220
226
#define UNIV_IBUF_COUNT_DEBUG                   /* debug the insert buffer;
221
227
this limits the database to IBUF_COUNT_N_SPACES and IBUF_COUNT_N_PAGES,
222
228
and the insert buffer must be empty when the database is started */
268
274
# define UNIV_INTERN
269
275
#endif
270
276
 
271
 
#if (!defined(UNIV_DEBUG) && !defined(UNIV_MUST_NOT_INLINE))
 
277
#ifndef UNIV_MUST_NOT_INLINE
272
278
/* Definition for inline version */
273
279
 
274
280
#ifdef __WIN__
331
337
longer names internally */
332
338
#define MAX_TABLE_NAME_LEN      192
333
339
 
 
340
/* The maximum length of a database name. Like MAX_TABLE_NAME_LEN this is
 
341
the MySQL's NAME_LEN, see check_and_convert_db_name(). */
 
342
#define MAX_DATABASE_NAME_LEN   MAX_TABLE_NAME_LEN
 
343
 
 
344
/* MAX_FULL_NAME_LEN defines the full name path including the
 
345
database name and table name. In addition, 14 bytes is added for:
 
346
        2 for surrounding quotes around table name
 
347
        1 for the separating dot (.)
 
348
        9 for the #mysql50# prefix */
 
349
#define MAX_FULL_NAME_LEN                               \
 
350
        (MAX_TABLE_NAME_LEN + MAX_DATABASE_NAME_LEN + 14)
 
351
 
334
352
/*
335
353
                        UNIVERSAL TYPE DEFINITIONS
336
354
                        ==========================