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
9a948882
Commit
9a948882
authored
Jan 31, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: btr_search_guess_on_hash(): Eliminate two local variables
and optimize one test.
parent
36734f34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
btr/btr0sea.c
btr/btr0sea.c
+3
-13
No files found.
btr/btr0sea.c
View file @
9a948882
...
...
@@ -727,9 +727,7 @@ btr_search_guess_on_hash(
rec_t
*
rec
;
const
page_t
*
page
;
ulint
fold
;
ulint
tuple_n_fields
;
dulint
index_id
;
ibool
can_only_compare_to_cursor_rec
=
TRUE
;
#ifdef notdefined
btr_cur_t
cursor2
;
btr_pcur_t
pcur
;
...
...
@@ -749,15 +747,8 @@ btr_search_guess_on_hash(
cursor
->
n_fields
=
info
->
n_fields
;
cursor
->
n_bytes
=
info
->
n_bytes
;
tuple_n_fields
=
dtuple_get_n_fields
(
tuple
);
if
(
UNIV_UNLIKELY
(
tuple_n_fields
<
cursor
->
n_fields
))
{
return
(
FALSE
);
}
if
(
UNIV_UNLIKELY
(
tuple_n_fields
==
cursor
->
n_fields
)
&&
(
cursor
->
n_bytes
>
0
))
{
if
(
UNIV_UNLIKELY
(
dtuple_get_n_fields
(
tuple
)
<
cursor
->
n_fields
+
(
cursor
->
n_bytes
>
0
)))
{
return
(
FALSE
);
}
...
...
@@ -820,7 +811,6 @@ btr_search_guess_on_hash(
}
rw_lock_s_unlock
(
&
btr_search_latch
);
can_only_compare_to_cursor_rec
=
FALSE
;
#ifdef UNIV_SYNC_DEBUG
buf_block_dbg_add_level
(
block
,
SYNC_TREE_NODE_FROM_HASH
);
...
...
@@ -852,7 +842,7 @@ btr_search_guess_on_hash(
if
(
UNIV_EXPECT
(
ut_dulint_cmp
(
index_id
,
btr_page_get_index_id
(
page
)),
0
)
||
!
btr_search_check_guess
(
cursor
,
can_only_compare_to_cursor_rec
,
has_search_latch
,
tuple
,
mode
,
mtr
))
{
if
(
UNIV_LIKELY
(
!
has_search_latch
))
{
btr_leaf_page_release
(
block
,
latch_mode
,
mtr
);
...
...
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