summaryrefslogtreecommitdiff
path: root/sql/lock.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-04-19 19:47:31 +0200
committerSergei Golubchik <serg@mariadb.org>2020-05-05 19:41:12 +0200
commit67aaf51cf9ef95180702ca9ae6275631bb40e7c7 (patch)
tree23b2f7e61d9d8b9a7922bc34a4e77875be7700f4 /sql/lock.cc
parentf29287d28026747472862bdcde0afdc31084a15a (diff)
downloadmariadb-git-67aaf51cf9ef95180702ca9ae6275631bb40e7c7.tar.gz
cleanup: ha_external_unlock() helper
as mentioned in f9f33b85be6 and generally to make it easier to talk about
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index f427ee0e115..b7bf4eb4f63 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -396,7 +396,7 @@ static int lock_external(THD *thd, TABLE **tables, uint count)
while (--i)
{
tables--;
- (*tables)->file->ha_external_lock(thd, F_UNLCK);
+ (*tables)->file->ha_external_unlock(thd);
(*tables)->current_lock=F_UNLCK;
}
DBUG_RETURN(error);
@@ -724,7 +724,7 @@ static int unlock_external(THD *thd, TABLE **table,uint count)
if ((*table)->current_lock != F_UNLCK)
{
(*table)->current_lock = F_UNLCK;
- if (unlikely((error=(*table)->file->ha_external_lock(thd, F_UNLCK))))
+ if (unlikely((error=(*table)->file->ha_external_unlock(thd))))
{
error_code= error;
(*table)->file->print_error(error, MYF(0));