~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/univ.i

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1994, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 2011, Oracle and/or its affiliates. All Rights Reserved.
4
4
Copyright (c) 2008, Google Inc.
5
 
Copyright (c) 2009, Sun Microsystems, Inc.
6
5
 
7
6
Portions of this file contain modifications contributed and copyrighted by
8
7
Google, Inc. Those modifications are gratefully acknowledged and are described
46
45
 
47
46
#define INNODB_VERSION_MAJOR    1
48
47
#define INNODB_VERSION_MINOR    0
49
 
#define INNODB_VERSION_BUGFIX   10
 
48
#define INNODB_VERSION_BUGFIX   17
50
49
 
51
50
/* The following is the InnoDB version as shown in
52
51
SELECT plugin_version FROM information_schema.plugins;
177
176
                                                debugging without UNIV_DEBUG */
178
177
#define UNIV_BUF_DEBUG                          /* Enable buffer pool
179
178
                                                debugging without UNIV_DEBUG */
 
179
#define UNIV_BLOB_LIGHT_DEBUG                   /* Enable off-page column
 
180
                                                debugging without UNIV_DEBUG */
180
181
#define UNIV_DEBUG                              /* Enable ut_ad() assertions
181
182
                                                and disable UNIV_INLINE */
182
183
#define UNIV_DEBUG_LOCK_VALIDATE                /* Enable
183
184
                                                ut_ad(lock_rec_validate_page())
184
185
                                                assertions. */
185
 
#define UNIV_DEBUG_FILE_ACCESSES                /* Debug .ibd file access
186
 
                                                (field file_page_was_freed
187
 
                                                in buf_page_t) */
 
186
#define UNIV_DEBUG_FILE_ACCESSES                /* Enable freed block access
 
187
                                                debugging without UNIV_DEBUG */
188
188
#define UNIV_LRU_DEBUG                          /* debug the buffer pool LRU */
189
189
#define UNIV_HASH_DEBUG                         /* debug HASH_ macros */
190
190
#define UNIV_LIST_DEBUG                         /* debug UT_LIST_ macros */
193
193
debugging redo log application problems. */
194
194
#define UNIV_MEM_DEBUG                          /* detect memory leaks etc */
195
195
#define UNIV_IBUF_DEBUG                         /* debug the insert buffer */
 
196
#define UNIV_BLOB_DEBUG                         /* track BLOB ownership;
 
197
assumes that no BLOBs survive server restart */
196
198
#define UNIV_IBUF_COUNT_DEBUG                   /* debug the insert buffer;
197
199
this limits the database to IBUF_COUNT_N_SPACES and IBUF_COUNT_N_PAGES,
198
200
and the insert buffer must be empty when the database is started */
296
298
longer names internally */
297
299
#define MAX_TABLE_NAME_LEN      192
298
300
 
 
301
/* The maximum length of a database name. Like MAX_TABLE_NAME_LEN this is
 
302
the MySQL's NAME_LEN, see check_and_convert_db_name(). */
 
303
#define MAX_DATABASE_NAME_LEN   MAX_TABLE_NAME_LEN
 
304
 
 
305
/* MAX_FULL_NAME_LEN defines the full name path including the
 
306
database name and table name. In addition, 14 bytes is added for:
 
307
        2 for surrounding quotes around table name
 
308
        1 for the separating dot (.)
 
309
        9 for the #mysql50# prefix */
 
310
#define MAX_FULL_NAME_LEN                               \
 
311
        (MAX_TABLE_NAME_LEN + MAX_DATABASE_NAME_LEN + 14)
 
312
 
299
313
/*
300
314
                        UNIVERSAL TYPE DEFINITIONS
301
315
                        ==========================
360
374
/* Maximum value for ib_uint64_t */
361
375
#define IB_ULONGLONG_MAX        ((ib_uint64_t) (~0ULL))
362
376
 
 
377
/* THe 'undefined' value for ullint */
 
378
#define ULLINT_UNDEFINED        ((ullint)(-1))
 
379
 
363
380
/* This 'ibool' type is used within Innobase. Remember that different included
364
381
headers may define 'bool' differently. Do not assume that 'bool' is a ulint! */
365
382
#define ibool                   ulint
409
426
/* Use sun_prefetch when compile with Sun Studio */
410
427
# define UNIV_EXPECT(expr,value) (expr)
411
428
# define UNIV_LIKELY_NULL(expr) (expr)
412
 
# define UNIV_PREFETCH_R(addr) sun_prefetch_read_many(addr)
 
429
# define UNIV_PREFETCH_R(addr) sun_prefetch_read_many((void*) addr)
413
430
# define UNIV_PREFETCH_RW(addr) sun_prefetch_write_many(addr)
414
431
#else
415
432
/* Dummy versions of the macros */