Commit fbb56135 authored by marko's avatar marko

branches/innodb+: row_upd_sec_index_entry(): Eliminate a goto.

parent efbc02a9
...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment