diff options
author | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-10-01 12:40:05 +0200 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@sun.com> | 2008-10-01 12:40:05 +0200 |
commit | 10a21dbc82a1ac4e2a4c518984f8ad6d28816513 (patch) | |
tree | 095e76bf7477a328dc682fa46dd753674f89dfa1 /sql/ha_partition.cc | |
parent | 38592fb0b9eab154db5e1aff48bf9995b146d9c7 (diff) | |
download | mariadb-git-10a21dbc82a1ac4e2a4c518984f8ad6d28816513.tar.gz |
pre push fix for bug#38804
sql/ha_partition.cc:
pre push fix for bug#38804
Found a missing 'if' for releasing the mutex
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 8f96ca08085..b6303fc2f3c 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -2502,7 +2502,8 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked) 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)); |