~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Imported InnoDB plugin with changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include "que0types.h"
16
16
#include "row0types.h"
17
17
#include "mtr0mtr.h"
18
 
#include "pars0pars.h"
19
18
 
20
19
/*************************************************************************
21
20
Creates a table create graph. */
22
 
 
 
21
UNIV_INTERN
23
22
tab_node_t*
24
23
tab_create_graph_create(
25
24
/*====================*/
29
28
        mem_heap_t*     heap);  /* in: heap where created */
30
29
/*************************************************************************
31
30
Creates an index create graph. */
32
 
 
 
31
UNIV_INTERN
33
32
ind_node_t*
34
33
ind_create_graph_create(
35
34
/*====================*/
39
38
        mem_heap_t*     heap);  /* in: heap where created */
40
39
/***************************************************************
41
40
Creates a table. This is a high-level function used in SQL execution graphs. */
42
 
 
 
41
UNIV_INTERN
43
42
que_thr_t*
44
43
dict_create_table_step(
45
44
/*===================*/
48
47
/***************************************************************
49
48
Creates an index. This is a high-level function used in SQL execution
50
49
graphs. */
51
 
 
 
50
UNIV_INTERN
52
51
que_thr_t*
53
52
dict_create_index_step(
54
53
/*===================*/
56
55
        que_thr_t*      thr);   /* in: query thread */
57
56
/***********************************************************************
58
57
Truncates the index tree associated with a row in SYS_INDEXES table. */
59
 
 
 
58
UNIV_INTERN
60
59
ulint
61
60
dict_truncate_index_tree(
62
61
/*=====================*/
63
62
                                /* out: new root page number, or
64
63
                                FIL_NULL on failure */
65
64
        dict_table_t*   table,  /* in: the table the index belongs to */
 
65
        ulint           space,  /* in: 0=truncate,
 
66
                                nonzero=create the index tree in the
 
67
                                given tablespace */
66
68
        btr_pcur_t*     pcur,   /* in/out: persistent cursor pointing to
67
69
                                record in the clustered index of
68
70
                                SYS_INDEXES table. The cursor may be
72
74
                                committed and restarted in this call. */
73
75
/***********************************************************************
74
76
Drops the index tree associated with a row in SYS_INDEXES table. */
75
 
 
 
77
UNIV_INTERN
76
78
void
77
79
dict_drop_index_tree(
78
80
/*=================*/
79
 
        rec_t*  rec,    /* in: record in the clustered index of SYS_INDEXES
80
 
                        table */
 
81
        rec_t*  rec,    /* in/out: record in the clustered index
 
82
                        of SYS_INDEXES table */
81
83
        mtr_t*  mtr);   /* in: mtr having the latch on the record page */
 
84
#ifndef UNIV_HOTBACKUP
82
85
/********************************************************************
83
86
Creates the foreign key constraints system tables inside InnoDB
84
87
at database creation or database start if they are not found or are
85
88
not of the right form. */
86
 
 
 
89
UNIV_INTERN
87
90
ulint
88
91
dict_create_or_check_foreign_constraint_tables(void);
89
92
/*================================================*/
95
98
databasename/tablename_ibfk_<number>, where the numbers start from 1, and are
96
99
given locally for this table, that is, the number is not global, as in the
97
100
old format constraints < 4.0.18 it used to be. */
98
 
 
 
101
UNIV_INTERN
99
102
ulint
100
103
dict_create_add_foreigns_to_dictionary(
101
104
/*===================================*/
110
113
                                was generated here */
111
114
        dict_table_t*   table,  /* in: table */
112
115
        trx_t*          trx);   /* in: transaction */
 
116
#endif /* !UNIV_HOTBACKUP */
113
117
 
114
118
/* Table create node structure */
115
119