diff options
author | mats@mysql.com <> | 2006-01-26 09:25:37 +0100 |
---|---|---|
committer | mats@mysql.com <> | 2006-01-26 09:25:37 +0100 |
commit | 5f7956094c0f675f1714b602593cc01a1793fb89 (patch) | |
tree | 58efc1a432ec7f374a5e46509bc0a633530a72ba /sql/lock.cc | |
parent | 802c94dd9f94df73c4a3052e3166a47a3948b926 (diff) | |
download | mariadb-git-5f7956094c0f675f1714b602593cc01a1793fb89.tar.gz |
WL#3023 (RBR: Use locks in a statment-like manner):
Interface changes pushed early.
Separation of public and implementation interface for external_lock()
in preparation for implementation.
Diffstat (limited to 'sql/lock.cc')
-rw-r--r-- | sql/lock.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/lock.cc b/sql/lock.cc index 8e24c56799d..edc76fbe660 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -229,12 +229,12 @@ static int lock_external(THD *thd, TABLE **tables, uint count) ((*tables)->reginfo.lock_type >= TL_READ && (*tables)->reginfo.lock_type <= TL_READ_NO_INSERT)) lock_type=F_RDLCK; - if ((error=(*tables)->file->external_lock(thd,lock_type))) + if ((error=(*tables)->file->ha_external_lock(thd,lock_type))) { print_lock_error(error, (*tables)->file->table_type()); for (; i-- ; tables--) { - (*tables)->file->external_lock(thd, F_UNLCK); + (*tables)->file->ha_external_lock(thd, F_UNLCK); (*tables)->current_lock=F_UNLCK; } DBUG_RETURN(error); @@ -562,7 +562,7 @@ static int unlock_external(THD *thd, TABLE **table,uint count) if ((*table)->current_lock != F_UNLCK) { (*table)->current_lock = F_UNLCK; - if ((error=(*table)->file->external_lock(thd, F_UNLCK))) + if ((error=(*table)->file->ha_external_lock(thd, F_UNLCK))) { error_code=error; print_lock_error(error_code, (*table)->file->table_type()); |