summaryrefslogtreecommitdiff
path: root/sql/sql_truncate.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-08-12 15:46:35 +0200
committerSergei Golubchik <sergii@pisem.net>2013-08-12 15:46:35 +0200
commit9747fbb4114146561f6f2b07a93c1cd97e23463b (patch)
tree2994dae4cd97e3f05f071fcb47a0a14c75d742c1 /sql/sql_truncate.cc
parenteafb11c821dedf5fb5509875b4fb553417ef1ea5 (diff)
downloadmariadb-git-9747fbb4114146561f6f2b07a93c1cd97e23463b.tar.gz
MDEV-4786 merge 10.0-monty -> 10.0
remove TDC_RT_REMOVE_NOT_OWN_AND_MARK_NOT_USABLE
Diffstat (limited to 'sql/sql_truncate.cc')
-rw-r--r--sql/sql_truncate.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc
index 9cd984a6663..907996c2315 100644
--- a/sql/sql_truncate.cc
+++ b/sql/sql_truncate.cc
@@ -369,8 +369,7 @@ bool Sql_cmd_truncate_table::lock_table(THD *thd, TABLE_LIST *table_ref,
{
DEBUG_SYNC(thd, "upgrade_lock_for_truncate");
/* To remove the table from the cache we need an exclusive lock. */
- if (wait_while_table_is_used(thd, table, HA_EXTRA_PREPARE_FOR_DROP,
- TDC_RT_REMOVE_NOT_OWN_AND_MARK_NOT_USABLE))
+ if (wait_while_table_is_used(thd, table, HA_EXTRA_PREPARE_FOR_DROP))
DBUG_RETURN(TRUE);
m_ticket_downgrade= table->mdl_ticket;
/* Close if table is going to be recreated. */