diff options
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index ebe6f325e65..3df1eb0f516 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -148,11 +148,11 @@ lock_tables_check(THD *thd, TABLE **tables, uint count, uint flags) } } + if (t->s->table_category == TABLE_CATEGORY_SYSTEM) + system_count++; + if (t->reginfo.lock_type >= TL_WRITE_ALLOW_WRITE) { - if (t->s->table_category == TABLE_CATEGORY_SYSTEM) - system_count++; - if (t->db_stat & HA_READ_ONLY) { my_error(ER_OPEN_AS_READONLY, MYF(0), t->alias.c_ptr_safe()); |