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
8460bf3f
Commit
8460bf3f
authored
Jul 04, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Eliminate some duplicated code to release btr_search_latch
that was found while investigating Bug #19081.
parent
2a8f49bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
31 deletions
+15
-31
row/row0sel.c
row/row0sel.c
+15
-31
No files found.
row/row0sel.c
View file @
8460bf3f
...
...
@@ -1747,10 +1747,6 @@ next_table_no_mtr:
thr
->
run_node
=
que_node_get_parent
(
node
);
if
(
search_latch_locked
)
{
rw_lock_s_unlock
(
&
btr_search_latch
);
}
err
=
DB_SUCCESS
;
goto
func_exit
;
}
...
...
@@ -1794,20 +1790,10 @@ table_exhausted_no_mtr:
sel_assign_into_var_values
(
node
->
into_list
,
node
);
thr
->
run_node
=
que_node_get_parent
(
node
);
}
else
{
node
->
state
=
SEL_NODE_NO_MORE_ROWS
;
if
(
search_latch_locked
)
{
rw_lock_s_unlock
(
&
btr_search_latch
);
}
goto
func_exit
;
}
node
->
state
=
SEL_NODE_NO_MORE_ROWS
;
thr
->
run_node
=
que_node_get_parent
(
node
);
if
(
search_latch_locked
)
{
rw_lock_s_unlock
(
&
btr_search_latch
);
thr
->
run_node
=
que_node_get_parent
(
node
);
}
goto
func_exit
;
...
...
@@ -1871,6 +1857,9 @@ lock_wait_or_error:
ut_ad
(
sync_thread_levels_empty_gen
(
TRUE
));
func_exit:
if
(
search_latch_locked
)
{
rw_lock_s_unlock
(
&
btr_search_latch
);
}
if
(
UNIV_LIKELY_NULL
(
heap
))
{
mem_heap_free
(
heap
);
}
...
...
@@ -3489,19 +3478,8 @@ stderr);
srv_n_rows_read
++
;
if
(
trx
->
search_latch_timeout
>
0
&&
trx
->
has_search_latch
)
{
trx
->
search_latch_timeout
--
;
rw_lock_s_unlock
(
&
btr_search_latch
);
trx
->
has_search_latch
=
FALSE
;
}
/* NOTE that we do NOT store the cursor
position */
err
=
DB_SUCCESS
;
goto
func_exit
;
goto
release_search_latch_if_needed
;
case
SEL_EXHAUSTED
:
mtr_commit
(
&
mtr
);
...
...
@@ -3509,6 +3487,8 @@ stderr);
/* ut_print_name(stderr, index->name);
fputs(" record not found 2\n", stderr); */
err
=
DB_RECORD_NOT_FOUND
;
release_search_latch_if_needed:
if
(
trx
->
search_latch_timeout
>
0
&&
trx
->
has_search_latch
)
{
...
...
@@ -3520,9 +3500,13 @@ stderr);
/* NOTE that we do NOT store the cursor
position */
err
=
DB_RECORD_NOT_FOUND
;
goto
func_exit
;
case
SEL_RETRY
:
break
;
default:
ut_ad
(
0
);
}
shortcut_fails_too_big_rec:
mtr_commit
(
&
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