Commit 2af98e36 authored by unknown's avatar unknown

row0sel.c:

  Fix buglets in previous push


innobase/row/row0sel.c:
  Fix buglets in previous push
parent deb5fda3
......@@ -2810,8 +2810,6 @@ row_search_for_mysql(
mode = pcur->search_mode;
}
mtr_start(&mtr);
/* In a search where at most one record in the index may match, we
can use a LOCK_REC_NOT_GAP type record lock when locking a non-delete-
marked matching record.
......@@ -2834,10 +2832,13 @@ row_search_for_mysql(
if (direction != 0 && !prebuilt->used_in_HANDLER) {
trx->op_info = (char*)"";
return(DB_RECORD_NOT_FOUND);
}
}
mtr_start(&mtr);
/*-------------------------------------------------------------*/
/* PHASE 2: Try fast adaptive hash index search if possible */
......
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