From 67aaf51cf9ef95180702ca9ae6275631bb40e7c7 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 19 Apr 2020 19:47:31 +0200 Subject: cleanup: ha_external_unlock() helper as mentioned in f9f33b85be6 and generally to make it easier to talk about --- sql/lock.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sql/lock.cc') 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)); -- cgit v1.2.1