diff --git a/sql/handler.cc b/sql/handler.cc
|
index eb7b5b8..012ef20 100644
|
--- a/sql/handler.cc
|
+++ b/sql/handler.cc
|
@@ -1567,7 +1567,7 @@ int ha_commit_trans(THD *thd, bool all)
|
DBUG_PRINT("info", ("is_real_trans: %d rw_trans: %d rw_ha_count: %d",
|
is_real_trans, rw_trans, rw_ha_count));
|
|
- if (rw_trans)
|
+ if (0 && rw_trans)
|
{
|
/*
|
Acquire a metadata lock which will ensure that COMMIT is blocked
|
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
|
index c41e08e..f9e3f34 100644
|
--- a/sql/sql_base.cc
|
+++ b/sql/sql_base.cc
|
@@ -2100,7 +2100,7 @@ bool open_table(THD *thd, TABLE_LIST *table_list, Open_table_context *ot_ctx)
|
}
|
|
if (!(flags & MYSQL_OPEN_HAS_MDL_LOCK) &&
|
- table->s->table_category < TABLE_CATEGORY_INFORMATION)
|
+ table->s->table_category < TABLE_CATEGORY_INFORMATION && 0)
|
{
|
/*
|
We are not under LOCK TABLES and going to acquire write-lock/
|
|