diff options
author | Konstantin Osipov <kostja@sun.com> | 2009-11-30 22:38:25 +0300 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2009-11-30 22:38:25 +0300 |
commit | 511c68fbd461efecd5bd9f7c08b42916fa8416c9 (patch) | |
tree | 2119379f97c4c8fea49681173452f812011da706 /sql/ha_partition.h | |
parent | b6c33a9a63a13d37822c0439bafb0daf9b2f3b5a (diff) | |
download | mariadb-git-511c68fbd461efecd5bd9f7c08b42916fa8416c9.tar.gz |
Backport of:
-------------------------------------------------------------------
revno: 2630.6.6
committer: Konstantin Osipov <konstantin@mysql.com>
branch nick: mysql-6.0-3726
timestamp: Tue 2008-05-27 16:15:44 +0400
message:
Implement code review fixes for WL#3726 "DDL locking for all
metadata objects": cleanup the code from share->mutex
acquisitions, which are now obsolete.
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index d4579d013fd..fc0e98348db 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -933,7 +933,7 @@ private: if(table_share->tmp_table == NO_TMP_TABLE) { auto_increment_lock= TRUE; - pthread_mutex_lock(&table_share->mutex); + pthread_mutex_lock(&table_share->LOCK_ha_data); } } virtual void unlock_auto_increment() @@ -946,7 +946,7 @@ private: */ if(auto_increment_lock && !auto_increment_safe_stmt_log_lock) { - pthread_mutex_unlock(&table_share->mutex); + pthread_mutex_unlock(&table_share->LOCK_ha_data); auto_increment_lock= FALSE; } } |