summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 71374d6666d..dfaf1881ad0 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -4044,6 +4044,7 @@ enum open_frm_error open_table_from_share(THD *thd, TABLE_SHARE *share,
}
outparam->reginfo.lock_type= TL_UNLOCK;
+ outparam->reginfo.skip_locked= false;
outparam->current_lock= F_UNLCK;
records=0;
if ((db_stat & HA_OPEN_KEYFILE) || (prgflag & DELAYED_OPEN))
@@ -5492,6 +5493,7 @@ void TABLE::init(THD *thd, TABLE_LIST *tl)
reginfo.impossible_range= 0;
reginfo.join_tab= NULL;
reginfo.not_exists_optimize= FALSE;
+ reginfo.skip_locked= false;
created= TRUE;
cond_selectivity= 1.0;
cond_selectivity_sampling_explain= NULL;