From d04b7669d6e0f3b86114027e88d9154d5a23304c Mon Sep 17 00:00:00 2001 From: marko <> Date: Thu, 16 Apr 2009 06:32:09 +0000 Subject: [PATCH] branches/zip: row_scan_and_check_index(): Initialize prebuilt->index_usable. This should have been done in r4631. Spotted by Michael. --- row/row0mysql.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/row/row0mysql.c b/row/row0mysql.c index bfc6caa0f4f..25e7cce7a8f 100644 --- a/row/row0mysql.c +++ b/row/row0mysql.c @@ -30,6 +30,7 @@ Created 9/17/2000 Heikki Tuuri #endif #include "row0ins.h" +#include "row0merge.h" #include "row0sel.h" #include "row0upd.h" #include "row0row.h" @@ -3957,6 +3958,8 @@ row_scan_and_check_index( in scanning the index entries */ prebuilt->index = index; + prebuilt->index_usable = row_merge_is_index_usable(prebuilt->trx, + index); prebuilt->sql_stat_start = TRUE; prebuilt->template_type = ROW_MYSQL_DUMMY_TEMPLATE; prebuilt->n_template = 0; -- 2.30.9