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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a78f330c
Commit
a78f330c
authored
Dec 10, 2008
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/innodb+: row_upd_sec_index_entry(): Eliminate a goto.
parent
9f7f664c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
row/row0upd.c
row/row0upd.c
+6
-8
No files found.
row/row0upd.c
View file @
a78f330c
...
@@ -1448,21 +1448,20 @@ row_upd_sec_index_entry(
...
@@ -1448,21 +1448,20 @@ row_upd_sec_index_entry(
search_result
=
row_search_index_entry
(
index
,
entry
,
mode
,
search_result
=
row_search_index_entry
(
index
,
entry
,
mode
,
&
pcur
,
&
mtr
);
&
pcur
,
&
mtr
);
if
(
search_result
==
ROW_BUFFERED
)
{
/* Entry was delete marked already. */
goto
close_cur
;
}
btr_cur
=
btr_pcur_get_btr_cur
(
&
pcur
);
btr_cur
=
btr_pcur_get_btr_cur
(
&
pcur
);
rec
=
btr_cur_get_rec
(
btr_cur
);
rec
=
btr_cur_get_rec
(
btr_cur
);
switch
(
search_result
)
{
switch
(
search_result
)
{
case
ROW_
BUFFERED
:
/* already handled above */
case
ROW_
NOT_IN_POOL
:
case
ROW_NOT_IN_POOL
:
/* should only occur for BTR_WATCH_LEAF
*/
/* This should only occur for BTR_WATCH_LEAF.
*/
ut_error
;
ut_error
;
break
;
break
;
case
ROW_BUFFERED
:
/* Entry was delete marked already. */
break
;
case
ROW_NOT_FOUND
:
case
ROW_NOT_FOUND
:
fputs
(
"InnoDB: error in sec index entry update in
\n
"
fputs
(
"InnoDB: error in sec index entry update in
\n
"
"InnoDB: "
,
stderr
);
"InnoDB: "
,
stderr
);
...
@@ -1510,7 +1509,6 @@ row_upd_sec_index_entry(
...
@@ -1510,7 +1509,6 @@ row_upd_sec_index_entry(
break
;
break
;
}
}
close_cur:
btr_pcur_close
(
&
pcur
);
btr_pcur_close
(
&
pcur
);
mtr_commit
(
&
mtr
);
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