mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-34741 - remove LOCK TABLE from mariadb-import
It currently serves no real purpose, but is suspected to cause occasional error when foreign keys are used. "Error: 1100, Table 'child' was not locked with LOCK TABLES, when using table: parent" as seen on CI
This commit is contained in:
parent
05fe3f1c18
commit
ff865b088f
1 changed files with 0 additions and 4 deletions
|
@ -628,8 +628,6 @@ static int handle_one_table(const table_load_params *params, MYSQL *mysql)
|
|||
}
|
||||
if (tz_utc && exec_sql(mysql, "SET TIME_ZONE='+00:00';"))
|
||||
DBUG_RETURN(1);
|
||||
if (exec_sql(mysql, std::string("LOCK TABLE ") + full_tablename + "WRITE"))
|
||||
DBUG_RETURN(1);
|
||||
if (exec_sql(mysql, std::string("ALTER TABLE ") + full_tablename + " DISABLE KEYS"))
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
@ -716,8 +714,6 @@ static int handle_one_table(const table_load_params *params, MYSQL *mysql)
|
|||
if (exec_sql(mysql, std::string("FLUSH TABLE ").append(full_tablename).c_str()))
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
if (exec_sql(mysql, "UNLOCK TABLES"))
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
|
||||
if (tz_utc)
|
||||
|
|
Loading…
Reference in a new issue