~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/fil0fil.h

Merge Stewart - update to innodb 1.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1995, 2010, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
110
110
                                        contents of this field is valid
111
111
                                        for all uncompressed pages. */
112
112
#define FIL_PAGE_FILE_FLUSH_LSN 26      /*!< this is only defined for the
113
 
                                        first page in a data file: the file
114
 
                                        has been flushed to disk at least up
115
 
                                        to this lsn */
 
113
                                        first page in a system tablespace
 
114
                                        data file (ibdata*, not *.ibd):
 
115
                                        the file has been flushed to disk
 
116
                                        at least up to this lsn */
116
117
#define FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID  34 /*!< starting from 4.1.x this
117
118
                                        contains the space id of the page */
118
119
#define FIL_PAGE_DATA           38      /*!< start of the data on the page */
224
225
                                0 for uncompressed tablespaces */
225
226
        ulint           purpose);/*!< in: FIL_TABLESPACE, or FIL_LOG if log */
226
227
/*******************************************************************//**
 
228
Assigns a new space id for a new single-table tablespace. This works simply by
 
229
incrementing the global counter. If 4 billion id's is not enough, we may need
 
230
to recycle id's.
 
231
@return TRUE if assigned, FALSE if not */
 
232
UNIV_INTERN
 
233
ibool
 
234
fil_assign_new_space_id(
 
235
/*====================*/
 
236
        ulint*  space_id);      /*!< in/out: space id */
 
237
/*******************************************************************//**
227
238
Returns the size of the space in pages. The tablespace must be cached in the
228
239
memory cache.
229
240
@return space size, 0 if space not found */
426
437
ulint
427
438
fil_create_new_single_table_tablespace(
428
439
/*===================================*/
429
 
        ulint*          space_id,       /*!< in/out: space id; if this is != 0,
430
 
                                        then this is an input parameter,
431
 
                                        otherwise output */
 
440
        ulint           space_id,       /*!< in: space id */
432
441
        const char*     tablename,      /*!< in: the table name in the usual
433
442
                                        databasename/tablename format
434
443
                                        of InnoDB, or a dir path to a temp