drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
btr0types.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/********************************************************************/
25
26#pragma once
27#ifndef btr0types_h
28#define btr0types_h
29
30#include "univ.i"
31
32#include "rem0types.h"
33#include "page0types.h"
34
41
42#ifdef UNIV_BLOB_DEBUG
43# include "buf0types.h"
45typedef struct btr_blob_dbg_struct btr_blob_dbg_t;
46
51UNIV_INTERN
52void
53btr_blob_dbg_rbt_insert(
54/*====================*/
55 dict_index_t* index,
56 const btr_blob_dbg_t* b,
57 const char* ctx)
58 __attribute__((nonnull));
59
64UNIV_INTERN
65void
66btr_blob_dbg_rbt_delete(
67/*====================*/
68 dict_index_t* index,
69 const btr_blob_dbg_t* b,
70 const char* ctx)
71 __attribute__((nonnull));
72
73/**************************************************************/
76UNIV_INTERN
77ulint
78btr_blob_dbg_add_rec(
79/*=================*/
80 const rec_t* rec,
81 dict_index_t* index,
82 const ulint* offsets,
83 const char* ctx)
84 __attribute__((nonnull));
85/**************************************************************/
88UNIV_INTERN
89ulint
90btr_blob_dbg_remove_rec(
91/*====================*/
92 const rec_t* rec,
93 dict_index_t* index,
94 const ulint* offsets,
95 const char* ctx)
96 __attribute__((nonnull));
97/**************************************************************/
101UNIV_INTERN
102ulint
103btr_blob_dbg_add(
104/*=============*/
105 const page_t* page,
106 dict_index_t* index,
107 const char* ctx)
108 __attribute__((nonnull));
109/**************************************************************/
114UNIV_INTERN
115ulint
116btr_blob_dbg_remove(
117/*================*/
118 const page_t* page,
119 dict_index_t* index,
120 const char* ctx)
121 __attribute__((nonnull));
122/**************************************************************/
125UNIV_INTERN
126void
127btr_blob_dbg_restore(
128/*=================*/
129 const page_t* npage,
130 const page_t* page,
131 dict_index_t* index,
132 const char* ctx)
133 __attribute__((nonnull));
134
141typedef ulint (*btr_blob_dbg_op_f)
142(const rec_t* rec,dict_index_t* index,const ulint* offsets,const char* ctx);
143
144/**************************************************************/
147UNIV_INTERN
148ulint
149btr_blob_dbg_op(
150/*============*/
151 const page_t* page,
152 const rec_t* rec,
154 dict_index_t* index,
155 const char* ctx,
156 const btr_blob_dbg_op_f op)
157 __attribute__((nonnull(1,3,4,5)));
158#else /* UNIV_BLOB_DEBUG */
159# define btr_blob_dbg_add_rec(rec, index, offsets, ctx) ((void) 0)
160# define btr_blob_dbg_add(page, index, ctx) ((void) 0)
161# define btr_blob_dbg_remove_rec(rec, index, offsets, ctx) ((void) 0)
162# define btr_blob_dbg_remove(page, index, ctx) ((void) 0)
163# define btr_blob_dbg_restore(npage, page, index, ctx) ((void) 0)
164# define btr_blob_dbg_op(page, rec, index, ctx, op) ((void) 0)
165#endif /* UNIV_BLOB_DEBUG */
166
170#define BTR_EXTERN_FIELD_REF_SIZE 20
171
175extern const byte field_ref_zero[BTR_EXTERN_FIELD_REF_SIZE];
176
177#endif
#define BTR_EXTERN_FIELD_REF_SIZE
Definition btr0types.h:170
struct btr_pcur_struct btr_pcur_t
Definition btr0types.h:36
struct btr_search_struct btr_search_t
Definition btr0types.h:40
struct btr_cur_struct btr_cur_t
Definition btr0types.h:38
#define page_t
Definition page0types.h:35