~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/dict0boot.h

  • Committer: Brian Aker
  • Date: 2009-01-17 02:46:52 UTC
  • Revision ID: brian@gir-3.local-20090117024652-4ducefje08ajbs1q
Refactor append_identifier and remove dead OPTION_QUOTE_SHOW_CREATE option
(we always quote).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
13
 
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
 
Place, Suite 330, Boston, MA 02111-1307 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/**************************************************//**
20
 
@file include/dict0boot.h
 
1
/******************************************************
21
2
Data dictionary creation and booting
22
3
 
 
4
(c) 1996 Innobase Oy
 
5
 
23
6
Created 4/18/1996 Heikki Tuuri
24
7
*******************************************************/
25
8
 
37
20
 
38
21
typedef byte    dict_hdr_t;
39
22
 
40
 
/**********************************************************************//**
41
 
Gets a pointer to the dictionary header and x-latches its page.
42
 
@return pointer to the dictionary header, page x-latched */
 
23
/**************************************************************************
 
24
Gets a pointer to the dictionary header and x-latches its page. */
43
25
UNIV_INTERN
44
26
dict_hdr_t*
45
27
dict_hdr_get(
46
28
/*=========*/
47
 
        mtr_t*  mtr);   /*!< in: mtr */
48
 
/**********************************************************************//**
49
 
Returns a new row, table, index, or tree id.
50
 
@return the new id */
 
29
                        /* out: pointer to the dictionary header,
 
30
                        page x-latched */
 
31
        mtr_t*  mtr);   /* in: mtr */
 
32
/**************************************************************************
 
33
Returns a new row, table, index, or tree id. */
51
34
UNIV_INTERN
52
35
dulint
53
36
dict_hdr_get_new_id(
54
37
/*================*/
55
 
        ulint   type);  /*!< in: DICT_HDR_ROW_ID, ... */
56
 
/**********************************************************************//**
57
 
Returns a new row id.
58
 
@return the new id */
 
38
                        /* out: the new id */
 
39
        ulint   type);  /* in: DICT_HDR_ROW_ID, ... */
 
40
/**************************************************************************
 
41
Returns a new row id. */
59
42
UNIV_INLINE
60
43
dulint
61
44
dict_sys_get_new_row_id(void);
62
45
/*=========================*/
63
 
/**********************************************************************//**
64
 
Reads a row id from a record or other 6-byte stored form.
65
 
@return row id */
 
46
                        /* out: the new id */
 
47
/**************************************************************************
 
48
Reads a row id from a record or other 6-byte stored form. */
66
49
UNIV_INLINE
67
50
dulint
68
51
dict_sys_read_row_id(
69
52
/*=================*/
70
 
        byte*   field); /*!< in: record field */
71
 
/**********************************************************************//**
 
53
                        /* out: row id */
 
54
        byte*   field); /* in: record field */
 
55
/**************************************************************************
72
56
Writes a row id to a record or other 6-byte stored form. */
73
57
UNIV_INLINE
74
58
void
75
59
dict_sys_write_row_id(
76
60
/*==================*/
77
 
        byte*   field,  /*!< in: record field */
78
 
        dulint  row_id);/*!< in: row id */
79
 
/*****************************************************************//**
 
61
        byte*   field,  /* in: record field */
 
62
        dulint  row_id);/* in: row id */
 
63
/*********************************************************************
80
64
Initializes the data dictionary memory structures when the database is
81
65
started. This function is also called when the data dictionary is created. */
82
66
UNIV_INTERN
83
67
void
84
68
dict_boot(void);
85
69
/*===========*/
86
 
/*****************************************************************//**
 
70
/*********************************************************************
87
71
Creates and initializes the data dictionary at the database creation. */
88
72
UNIV_INTERN
89
73
void