Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7d34b71c
Commit
7d34b71c
authored
Jan 25, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Introduce the accessor function dict_index_is_ibuf()
for determining if an index is the insert buffer B-tree.
parent
f490a730
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
8 deletions
+34
-8
btr/btr0btr.c
btr/btr0btr.c
+3
-3
btr/btr0cur.c
btr/btr0cur.c
+2
-2
btr/btr0sea.c
btr/btr0sea.c
+1
-1
dict/dict0dict.c
dict/dict0dict.c
+2
-2
include/dict0dict.h
include/dict0dict.h
+10
-0
include/dict0dict.ic
include/dict0dict.ic
+16
-0
No files found.
btr/btr0btr.c
View file @
7d34b71c
...
...
@@ -322,7 +322,7 @@ btr_page_alloc(
buf_block_t
*
new_block
;
ulint
new_page_no
;
if
(
index
->
type
&
DICT_IBUF
)
{
if
(
dict_index_is_ibuf
(
index
)
)
{
return
(
btr_page_alloc_for_ibuf
(
index
,
mtr
));
}
...
...
@@ -446,7 +446,7 @@ btr_page_free_low(
buf_block_modify_clock_inc
(
block
);
if
(
index
->
type
&
DICT_IBUF
)
{
if
(
dict_index_is_ibuf
(
index
)
)
{
btr_page_free_for_ibuf
(
index
,
block
,
mtr
);
...
...
@@ -2757,7 +2757,7 @@ btr_print_size(
fseg_header_t
*
seg
;
mtr_t
mtr
;
if
(
index
->
type
&
DICT_IBUF
)
{
if
(
dict_index_is_ibuf
(
index
)
)
{
fputs
(
"Sorry, cannot print info of an ibuf tree:"
" use ibuf functions
\n
"
,
stderr
);
...
...
btr/btr0cur.c
View file @
7d34b71c
...
...
@@ -341,7 +341,7 @@ btr_cur_search_to_nth_level(
ut_ad
(
level
==
0
||
mode
==
PAGE_CUR_LE
);
ut_ad
(
dict_index_check_search_tuple
(
index
,
tuple
));
ut_ad
(
!
(
index
->
type
&
DICT_IBUF
)
||
ibuf_inside
());
ut_ad
(
!
dict_index_is_ibuf
(
index
)
||
ibuf_inside
());
ut_ad
(
dtuple_check_typed
(
tuple
));
#ifdef UNIV_DEBUG
...
...
@@ -939,7 +939,7 @@ btr_cur_ins_lock_and_undo(
return
(
err
);
}
if
(
dict_index_is_clust
(
index
)
&&
!
(
index
->
type
&
DICT_IBUF
))
{
if
(
dict_index_is_clust
(
index
)
&&
!
dict_index_is_ibuf
(
index
))
{
err
=
trx_undo_report_row_operation
(
flags
,
TRX_UNDO_INSERT_OP
,
thr
,
index
,
entry
,
...
...
btr/btr0sea.c
View file @
7d34b71c
...
...
@@ -233,7 +233,7 @@ btr_search_info_update_hash(
index
=
cursor
->
index
;
if
(
index
->
type
&
DICT_IBUF
)
{
if
(
dict_index_is_ibuf
(
index
)
)
{
/* So many deletes are performed on an insert buffer tree
that we do not consider a hash index useful on it: */
...
...
dict/dict0dict.c
View file @
7d34b71c
...
...
@@ -1698,7 +1698,7 @@ dict_index_build_internal_clust(
new_index
->
trx_id_offset
=
0
;
if
(
!
(
index
->
type
&
DICT_IBUF
))
{
if
(
!
dict_index_is_ibuf
(
index
))
{
/* Add system columns, trx id first */
trx_id_pos
=
new_index
->
n_def
;
...
...
@@ -1784,7 +1784,7 @@ dict_index_build_internal_clust(
mem_free
(
indexed
);
ut_ad
(
(
index
->
type
&
DICT_IBUF
)
ut_ad
(
dict_index_is_ibuf
(
index
)
||
(
UT_LIST_GET_LEN
(
table
->
indexes
)
==
0
));
new_index
->
cached
=
TRUE
;
...
...
include/dict0dict.h
View file @
7d34b71c
...
...
@@ -537,6 +537,16 @@ dict_index_is_unique(
zero for other indexes */
const
dict_index_t
*
index
)
/* in: index */
__attribute__
((
pure
));
/************************************************************************
Check whether the index is the insert buffer tree. */
UNIV_INLINE
ulint
dict_index_is_ibuf
(
/*===============*/
/* out: nonzero for insert buffer,
zero for other indexes */
const
dict_index_t
*
index
)
/* in: index */
__attribute__
((
pure
));
/************************************************************************
Gets the number of user-defined columns in a table in the dictionary
...
...
include/dict0dict.ic
View file @
7d34b71c
...
...
@@ -203,6 +203,22 @@ dict_index_is_unique(
return(UNIV_UNLIKELY(index->type & DICT_UNIQUE));
}
/************************************************************************
Check whether the index is the insert buffer tree. */
UNIV_INLINE
ulint
dict_index_is_ibuf(
/*===============*/
/* out: nonzero for insert buffer,
zero for other indexes */
const dict_index_t* index) /* in: index */
{
ut_ad(index);
ut_ad(index->magic_n == DICT_INDEX_MAGIC_N);
return(UNIV_UNLIKELY(index->type & DICT_IBUF));
}
/************************************************************************
Gets the number of user-defined columns in a table in the dictionary
cache. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment