From c0dce89796cea47300d79ace5ef43247bc9e0ca9 Mon Sep 17 00:00:00 2001 From: marko <> Date: Mon, 29 May 2006 12:02:24 +0000 Subject: [PATCH] Merge r596 from branches/5.0: row_sel_try_search_shortcut(): Do not return SEL_FOUND when the record was not found. This bug was introduced in MySQL/InnoDB 5.0.3, but luckily it should never manifest itself, given that existing InnoDB SQL code never makes use of consistent reads. --- row/row0sel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/row/row0sel.c b/row/row0sel.c index 1c2712cf3b7..3f42222ca2e 100644 --- a/row/row0sel.c +++ b/row/row0sel.c @@ -1135,11 +1135,12 @@ row_sel_try_search_shortcut( ut_ad(plan->pcur.latch_mode == node->latch_mode); plan->n_rows_fetched++; + ret = SEL_FOUND; func_exit: if (UNIV_LIKELY_NULL(heap)) { mem_heap_free(heap); } - return(SEL_FOUND); + return(ret); } /*************************************************************************