Commit 16bc8613 authored by marko's avatar marko

branches/zip: row_scan_and_check_index(): Initialize prebuilt->index_usable.

This should have been done in r4631.  Spotted by Michael.
parent cb3b50c2
...@@ -30,6 +30,7 @@ Created 9/17/2000 Heikki Tuuri ...@@ -30,6 +30,7 @@ Created 9/17/2000 Heikki Tuuri
#endif #endif
#include "row0ins.h" #include "row0ins.h"
#include "row0merge.h"
#include "row0sel.h" #include "row0sel.h"
#include "row0upd.h" #include "row0upd.h"
#include "row0row.h" #include "row0row.h"
...@@ -3957,6 +3958,8 @@ row_scan_and_check_index( ...@@ -3957,6 +3958,8 @@ row_scan_and_check_index(
in scanning the index entries */ in scanning the index entries */
prebuilt->index = index; prebuilt->index = index;
prebuilt->index_usable = row_merge_is_index_usable(prebuilt->trx,
index);
prebuilt->sql_stat_start = TRUE; prebuilt->sql_stat_start = TRUE;
prebuilt->template_type = ROW_MYSQL_DUMMY_TEMPLATE; prebuilt->template_type = ROW_MYSQL_DUMMY_TEMPLATE;
prebuilt->n_template = 0; prebuilt->n_template = 0;
......
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