diff options
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/pars/pars0opt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/innobase/pars/pars0opt.c b/innobase/pars/pars0opt.c index dd0718ce946..91083e6fa16 100644 --- a/innobase/pars/pars0opt.c +++ b/innobase/pars/pars0opt.c @@ -373,7 +373,8 @@ opt_calc_index_goodness( } } - if (index->type & DICT_CLUSTERED) { + /* We have to test for goodness here, as last_op may note be set */ + if (goodness && index->type & DICT_CLUSTERED) { goodness++; } |