mariadb/storage
Konstantin Osipov cd055f0efe 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.

sql/ha_partition.cc:
  Rename share->mutex to share->LOCK_ha_data. The mutex never
  protected the entire share. The right way to protect a share
  is to acquire an MDL lock.
sql/ha_partition.h:
  Rename share->mutex to share->LOCK_ha_data.
sql/sql_base.cc:
  Remove LOCK_table_share. Do not acquire share->mutex when
  deleting a table share or incrementing its ref_count.
  All these operations are and must continue to be protected by LOCK_open
  and respective MDL locks.
sql/sql_view.cc:
  Remove acquisition of share->mutex when incrementing share->ref_count.
sql/table.cc:
  Simplify release_table_shar() by removing dead code related
  to share->mutex from it.
sql/table.h:
  Rename TABLE_SHARE::mutex to TABLE_SHARE::LOCK_ha_data
  to better reflect its purpose.
storage/myisam/ha_myisam.cc:
  Rename share->mutex to share->LOCK_ha_data.
2009-11-30 22:38:25 +03:00
..
archive Backport of: 2009-11-24 16:54:59 +03:00
blackhole Backport of: 2009-11-24 16:54:59 +03:00
csv Backport of: 2009-11-24 16:54:59 +03:00
example Backport of: 2009-11-24 16:54:59 +03:00
federated Backport of: 2009-11-24 16:54:59 +03:00
heap Backport of: 2009-11-24 16:54:59 +03:00
ibmdb2i Bug#45983 ibmdb2i_create_index_option=1 not working for primary key 2009-07-08 14:40:01 +05:30
innobase Backport of: 2009-11-24 16:54:59 +03:00
myisam Backport of: 2009-11-30 22:38:25 +03:00
myisammrg Initial import of WL#3726 "DDL locking for all metadata objects". 2009-11-30 18:55:03 +03:00
ndb Manual merge of mysql-next-mr-runtime upstream. 2009-11-19 21:48:08 -02:00
Makefile.am Backport WL#3653 to 5.1 to enable bundled innodb plugin. 2009-06-10 10:59:49 +02:00
mysql_storage_engine.cmake WL#4903 Plugin Service API part I 2009-11-02 21:05:42 +01:00