Skip to content

Commit

Permalink
MDEV-22761: innodb row_search_idx_cond_check handle CHECK_ABORTED_BY_…
Browse files Browse the repository at this point in the history
…USER

Part #3:
Two more cases within row_search_mvcc need to handle the CHECK_ABORTED_BY_USER
and process this as a DB_INTERRUPTED.
  • Loading branch information
grooverdan committed Oct 9, 2020
1 parent e206c0c commit 94b3b96
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions storage/innobase/row/row0sel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4453,9 +4453,12 @@ row_search_mvcc(
switch (row_search_idx_cond_check(
buf, prebuilt,
rec, offsets)) {
case CHECK_ABORTED_BY_USER:
err = DB_INTERRUPTED;
mtr.commit();
goto func_exit;
case CHECK_NEG:
case CHECK_OUT_OF_RANGE:
case CHECK_ABORTED_BY_USER:
case CHECK_ERROR:
goto shortcut_mismatch;
case CHECK_POS:
Expand Down Expand Up @@ -5239,8 +5242,10 @@ row_search_mvcc(
buf, prebuilt, rec, offsets)) {
case CHECK_NEG:
goto next_rec;
case CHECK_OUT_OF_RANGE:
case CHECK_ABORTED_BY_USER:
err = DB_INTERRUPTED;
goto idx_cond_failed;
case CHECK_OUT_OF_RANGE:
case CHECK_ERROR:
err = DB_RECORD_NOT_FOUND;
goto idx_cond_failed;
Expand Down

0 comments on commit 94b3b96

Please sign in to comment.