summaryrefslogtreecommitdiff
path: root/sql/lock.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2018-10-19 19:10:45 +0400
committerSergey Vojtovich <svoj@mariadb.org>2018-10-19 19:10:45 +0400
commit642394197e397fa73d776ee1fecdbd07f54607ff (patch)
tree3d141cd4de621922919cba71eb215231c62d5d6d /sql/lock.cc
parent4ac85d6fd7c43fd0c45c98c0b55810591bd7594b (diff)
downloadmariadb-git-642394197e397fa73d776ee1fecdbd07f54607ff.tar.gz
Remove unused code.
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index 3354da2640b..09e8dbd6aa8 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -541,23 +541,6 @@ void mysql_lock_remove(THD *thd, MYSQL_LOCK *locked,TABLE *table)
}
-/** Abort all other threads waiting to get lock in table. */
-
-void mysql_lock_abort(THD *thd, TABLE *table, bool upgrade_lock)
-{
- MYSQL_LOCK *locked;
- DBUG_ENTER("mysql_lock_abort");
-
- if ((locked= get_lock_data(thd, &table, 1, GET_LOCK_UNLOCK)))
- {
- for (uint i=0; i < locked->lock_count; i++)
- thr_abort_locks(locked->locks[i]->lock, upgrade_lock);
- my_free(locked);
- }
- DBUG_VOID_RETURN;
-}
-
-
/**
Abort one thread / table combination.