From: Date: October 1 2008 12:40pm Subject: bzr commit into mysql-5.1 branch (mattias.jonsson:2694) Bug#38804 List-Archive: http://lists.mysql.com/commits/54916 X-Bug: 38804 Message-Id: <20081001104043.D394A1365677@client-10-129-10-147.upp.off.mysql.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT #At file:///Users/mattiasj/clones/bzrroot/topush-51-5129rc/ 2694 Mattias Jonsson 2008-10-01 pre push fix for bug#38804 modified: sql/ha_partition.cc per-file messages: sql/ha_partition.cc pre push fix for bug#38804 Found a missing 'if' for releasing the mutex === modified file 'sql/ha_partition.cc' --- a/sql/ha_partition.cc 2008-10-01 10:14:55 +0000 +++ b/sql/ha_partition.cc 2008-10-01 10:40:05 +0000 @@ -2502,7 +2502,8 @@ int ha_partition::open(const char *name, sizeof(HA_DATA_PARTITION)); if (!ha_data) { - pthread_mutex_unlock(&table_share->mutex); + if (is_not_tmp_table) + pthread_mutex_unlock(&table_share->mutex); goto err_handler; } DBUG_PRINT("info", ("table_share->ha_data 0x%p", ha_data));