diff options
-rw-r--r-- | innobase/row/row0sel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/innobase/row/row0sel.c b/innobase/row/row0sel.c index 6172b36dc7e..482f82b02ba 100644 --- a/innobase/row/row0sel.c +++ b/innobase/row/row0sel.c @@ -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 */ |